Commit d051961f authored by Jan Kiene's avatar Jan Kiene
Browse files

add reconfig on every first good frame

parent e9c2f3c6
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -151,6 +151,7 @@
#define FIX_235                                         /* Issue 235: Deallocation of HR filter memory separately for lib_rend (ROM) and lib_util (from file) */
#define ENV_STAB_FIX                                    /* Contribution 23: HQ envelope stability memory fix */
#define STABILIZE_GIPD                                  /* FhG: Contribution 22: gIPD stabilization */
#define FIX_288_RECONF_TCX_ON_1ST_GOOD_FRAME_ALWAYS     /* FhG: fix for issue 288: fixes range coder crash in unified stereo with frameloss */

/* ################## End DEVELOPMENT switches ######################### */
/* clang-format on */
+3 −0
Original line number Diff line number Diff line
@@ -128,6 +128,9 @@ void stereo_tcx_init_dec(
    if ( ( st->bits_frame_nominal != st->last_bits_frame_nominal ) ||
         ( st->bwidth != st->last_bwidth ) ||
         ( st->last_core != TCX_20_CORE && st->last_core != TCX_10_CORE && !( st->prev_bfi == 1 && st->last_core == ACELP_CORE && st->last_con_tcx == 1 ) ) ||
#ifdef FIX_288_RECONF_TCX_ON_1ST_GOOD_FRAME_ALWAYS
         (st->prev_bfi && !st->bfi) ||
#endif
         ( st->idchan == 1 && st->element_mode == IVAS_CPE_MDCT && last_element_mode != IVAS_CPE_MDCT ) )
    {
        /*re-initialization*/