From b079126b12e3e304ea1668e1f4699598ad64c54e Mon Sep 17 00:00:00 2001 From: Markus Multrus Date: Thu, 29 Jan 2026 09:59:03 +0100 Subject: [PATCH] basop issue 2391: make sure hq_generic_offset is initialized inside hq_hr_dec_fx() --- lib_com/options.h | 1 + lib_dec/hq_hr_dec_fx.c | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib_com/options.h b/lib_com/options.h index e11d5dffa..b308d494c 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -102,6 +102,7 @@ #define FIX_2319_CLDFB_INIT_FLAGS /* FhG: basop issue 2319: init hs->flags during openCldfb(), to avoid reading of uninitialized memory */ #define FIX_BASOP_2357_OBJECT_EDIT_MSAN /* Nokia: basop issue 2357: initialize missing exponents in object edit */ #define FIX_BASOP_2354_MSAN_DIFF_Q_VALUE /* Nokia: Initialize Q value of diffuseness in rendering to Q30 */ +#define FIX_2391_INIT_HQ_GENERIC_OFFSET /* FhG/Eri: basop issue 2391: make sure hq_generic_offset is initialized inside hq_hr_dec_fx() */ /* #################### End BE switches ################################## */ diff --git a/lib_dec/hq_hr_dec_fx.c b/lib_dec/hq_hr_dec_fx.c index 858306b17..bcc330d61 100644 --- a/lib_dec/hq_hr_dec_fx.c +++ b/lib_dec/hq_hr_dec_fx.c @@ -435,7 +435,10 @@ void hq_hr_dec_fx( move16(); HQ_DEC_HANDLE hHQ_core = st_fx->hHQ_core; - +#ifdef FIX_2391_INIT_HQ_GENERIC_OFFSET + hq_generic_offset = 0; + move16(); +#endif move16(); Q_audio = 0; /* to avoid compilation warnings */ -- GitLab