Commit 3bb8fda9 authored by multrus's avatar multrus
Browse files

Merge branch...

Merge branch 'basop-2559-allocate_corecoder_tcx_fx-missing-initialization-of-htcxdec-q_synth_history_fx' into 'main'

Resolve "allocate_CoreCoder_TCX_fx(): Missing initialization of hTcxDec->q_synth_history_fx"

Closes #2559

See merge request !2988
parents 1605e1a5 4d20bb40
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -144,6 +144,7 @@
#define FIX_FMSW_DEC_2                                  /* float issue 1575: fix crash for format switching when bitsream starts with EVS */
#define FIX_BASOP_2561_STEREO_DFT_ENC_COMPUTE_ITD       /* BASOP issue 2561: fix diffs in stereo_dft_enc_compute_itd() between float and BASOP */
#define FIX_BASOP_2517_CLICK_IN_OMASA_LTV               /* FhG: BASOP #2517: preserve precision by removing one-bit headroom from Q_min and allowing saturation during buffer scaling */
#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 )