From 458f45cb7e699982e1bd839219bea9613e0bc18d Mon Sep 17 00:00:00 2001 From: Markus Multrus Date: Sat, 7 Mar 2026 20:19:34 +0100 Subject: [PATCH] make sure, st_fx->Q_syn_factor gets initialized during decoder startup --- lib_com/options.h | 1 + lib_dec/init_dec_fx.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/lib_com/options.h b/lib_com/options.h index 23a5aa26c..4cb7eddf1 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -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 ################################## */ diff --git a/lib_dec/init_dec_fx.c b/lib_dec/init_dec_fx.c index b8a5fe6de..82c566a56 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++ ) { -- GitLab