Commit 27cb9e46 authored by multrus's avatar multrus
Browse files

BASOP issue 2559: reset hTcxDec->q_synth_history_fx in allocate_CoreCoder_TCX_fx()

parent 8ff889f8
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -139,6 +139,7 @@
#define FIX_BASOP_2548_ProcessIGF_fx_PREDICTIONGAIN     /* FhG: fixes obvious bug for IVAS path. For EVS path, issue is still not resolved */
#define FIX_FMSW_DEC                                    /* float issue 1542: fix JBM issue in format switching */
#define FIX_FMSW_DEC_2                                  /* float issue 1575: fix crash for format switching when bitsream starts with EVS */
#define FIX_BASOP_2559_Q_SYNTH_HISTORY_RESET            /* FhG: BASOP issue 2559: reset hTcxDec->q_synth_history_fx in allocate_CoreCoder_TCX_fx() */

/* ##################### End NON-BE switches ########################### */

+4 −0
Original line number Diff line number Diff line
@@ -82,6 +82,10 @@ static ivas_error allocate_CoreCoder_TCX_fx(
        st->hTcxDec->q_old_synth = 0;
        move16();
        set16_fx( st->hTcxDec->synth_history_fx, 0, L_PROT48k + L_FRAME48k );
#ifdef FIX_BASOP_2559_Q_SYNTH_HISTORY_RESET
        st->hTcxDec->q_synth_history_fx = 0;
        move16();
#endif
    }

    IF( st->hTcxCfg == NULL )