diff --git a/lib_com/options.h b/lib_com/options.h index ccd2987cc5d6d089e4258cf26c1d31ab010436be..a8d6fd9017b05023fe6d48ba7a3b0c375dc24876 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 dc36524a2c6be726873967248306b805fda294df..f44e073a4e983bc11f5bf4851fc4644d074e1a0b 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();