diff --git a/lib_com/options.h b/lib_com/options.h index 4af9a90d3e6087f81f61853884d24573afe32577..a9eb870a3d11f5b6b49b377d1afed048f9d96cab 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -95,6 +95,7 @@ #define FIX_2467_RENAME_GSC_FUNCTION /* VA: basop issue 2467: Removal of unused function/table and renaming of _ivas_fx versions to default ones. */ #define HARMONIZE_FUNC /* VA: basop issue 2460: Remove duplicated code: various functions */ #define FIX_FLOAT_1536_INIT_NO_PARAM_LPC /* FhG: make sure no_param_lpc is initialized in core_encode_twodiv() */ +#define FIX_BASOP_2871_INIT_Q_SYN_FACTOR /* FhG: make sure, st_fx->Q_syn_factor gets initialized during decoder startup */ /* #################### End BE switches ################################## */ diff --git a/lib_dec/init_dec_fx.c b/lib_dec/init_dec_fx.c index b8a5fe6de63c1dd49f8d29605942b44899021687..82c566a56d2e47e513d678a54a020d1e7f11d1f2 100644 --- a/lib_dec/init_dec_fx.c +++ b/lib_dec/init_dec_fx.c @@ -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++ ) {