From 28db75ddd66da6a5541e94354871f0e63236abb8 Mon Sep 17 00:00:00 2001 From: Markus Multrus Date: Tue, 15 Oct 2024 15:52:43 +0200 Subject: [PATCH] proposed fix for issue 924 --- lib_com/options.h | 1 + lib_dec/igf_dec_fx.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/lib_com/options.h b/lib_com/options.h index ccd2987cc..a8d6fd901 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -185,6 +185,7 @@ #define FIX_879_DIFF_CONCEAL_PATH /* FhG: Fix for issue 879 and different concelalment paths that led to crash */ #define FIX_907_MEM_UPDATE_ISSUE /* VA: fix for 907, multiples issues surrounding mem_syn_r and update of mem_syn2 when FS is changing */ #define FIX_918_WRONG_SCALING_ON_MODE_SWITCHING /* VA: Fix wrong scaling of secondary channel when switching from stereo DFT to TD */ +#define FIX_924_IGF_ROUNDFX_SAT /* ################## End DEVELOPMENT switches ######################### */ diff --git a/lib_dec/igf_dec_fx.c b/lib_dec/igf_dec_fx.c index dc36524a2..f44e073a4 100644 --- a/lib_dec/igf_dec_fx.c +++ b/lib_dec/igf_dec_fx.c @@ -2488,7 +2488,11 @@ static void IGF_appl_ivas( IGF_DEC_PRIVATE_DATA_HANDLE hPrivateData, /**< in /* calc square root of L_tmp and store result in dN */ L_tmp = Sqrt32( L_tmp, &L_tmp_e ); +#ifdef FIX_924_IGF_ROUNDFX_SAT + dN[sfb] = round_fx_sat( L_tmp ); +#else dN[sfb] = round_fx( L_tmp ); +#endif move16(); dN_e[sfb] = L_tmp_e; move16(); -- GitLab