From 8add2ff5cee238305a2299872eaaca2cb7d94ff7 Mon Sep 17 00:00:00 2001 From: "Azizi, Arash" Date: Thu, 28 May 2026 14:14:55 +0200 Subject: [PATCH] issue 2611: creating the switch and correcting the comment. --- lib_com/options.h | 1 + lib_dec/ivas_stereo_dft_plc_fx.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/lib_com/options.h b/lib_com/options.h index 8242a0b71..8c5326eb5 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -96,6 +96,7 @@ #define FIX_FLOAT_1539_G192_FORMAT_SWITCH /* VA/Nokia: reintroduce format switching for g192 bitstreams */ #define HARMONIZE_2595_reconfig_decoder_LPD /* FhG: Harmonize reconfig_decoder_LPD with its ivas derivate */ #define HARMONIZE_2596_SetModeIndex /* FhG: Harmonize SetModeIndex with its ivas derivate */ +#define FIX_ISSUE_2611_WRONG_COMMENT /* FhG: basop issue 2611: Wrong Q value comment in fucntion stereo_dft_sg_recovery_fx()*/ /* #################### End BE switches ################################## */ diff --git a/lib_dec/ivas_stereo_dft_plc_fx.c b/lib_dec/ivas_stereo_dft_plc_fx.c index 670b19e36..92cf02405 100644 --- a/lib_dec/ivas_stereo_dft_plc_fx.c +++ b/lib_dec/ivas_stereo_dft_plc_fx.c @@ -844,7 +844,11 @@ Word16 stereo_dft_sg_recovery_fx( test(); IF( LT_32( sg_m, (Word32) 0x4CCCCCCD ) && GT_32( sg_m, (Word32) ( 0xB3333333 ) ) ) { +#ifndef FIX_ISSUE_2611_WRONG_COMMENT hStereoDft->sg_mean_fx = 0; /* Q13 */ +#else + hStereoDft->sg_mean_fx = 0; /* Q31 */ +#endif // !FIX_ISSUE_2611_WRONG_COMMENT move32(); } ELSE -- GitLab