Commit 458f45cb authored by multrus's avatar multrus
Browse files

make sure, st_fx->Q_syn_factor gets initialized during decoder startup

parent b0d052d7
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -91,6 +91,7 @@
#define HARM_2456_APPLY_SCALE                           /* FhG basop issue 2456: Harmonize apply_scale_ind(), apply_scale_ivas_fx() */
#define HARM_2454_TCX_RES_Q_SPEC                        /* FhG: harmonization of tcx_res_Q_spec_fx() and tcx_res_Q_spec_ivas_fx() */
#define FIX_FLOAT_1535_ARI_RES_Q_CLEANUP                /* FhG: remove dead code from tcx_ari_res_Q_spec() */
#define FIX_BASOP_2871_INIT_Q_SYN_FACTOR                /* FhG: make sure, st_fx->Q_syn_factor gets initialized during decoder startup */

/* #################### End BE switches ################################## */

+4 −0
Original line number Diff line number Diff line
@@ -969,6 +969,10 @@ ivas_error init_decoder_fx(
    move16();
    st_fx->prev_Q_syn = 0;
    move16();
#ifdef FIX_BASOP_2871_INIT_Q_SYN_FACTOR
    st_fx->Q_syn_factor = 0;
    move16();
#endif

    FOR( i = 0; i < L_Q_MEM; i++ )
    {