From 93eb68e2a013bd21dc5bec22cce54f932f0dc551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomas=20Toftg=C3=A5rd?= Date: Fri, 12 Sep 2025 11:09:56 +0200 Subject: [PATCH] Add missing increment of tmpF resolving FER click issues for MDCT stereo. --- lib_com/options.h | 2 ++ lib_dec/core_switching_dec_fx.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/lib_com/options.h b/lib_com/options.h index 7b5129300..d2ffa2ca1 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -97,6 +97,8 @@ #define FIX_2009_HIGH_NOISE_FLOOR_FOR_FX_DEC /* FhG: Corrected the q_input in the input of generate_masking_noise_dirac_ivas_fx() */ #define FIX_ISSUE_2013_MDCT_STEREO_DTX_DISCONTINUITIES /* Eri/FhG: Issue 2013 fix for dtx discontinuities */ +#define FIX_ISSUE_2013_MDCT_STEREO_FER_DISCONTINUITIES /* Eri/FhG: Issue 2013 fix for FER discontinuities */ + /* #################### Start BASOP porting switches ############################ */ #define NONBE_1244_FIX_SWB_BWE_MEMORY /* VA: issue 1244: fix to SWB BWE memory in case of switching from FB coding - pending a review by Huawei */ diff --git a/lib_dec/core_switching_dec_fx.c b/lib_dec/core_switching_dec_fx.c index 4d5dbf83a..be95ebaf0 100644 --- a/lib_dec/core_switching_dec_fx.c +++ b/lib_dec/core_switching_dec_fx.c @@ -1707,6 +1707,9 @@ ivas_error core_switching_post_dec_ivas_fx( move16(); ptmp1++; ptmp2++; +#ifdef FIX_ISSUE_2013_MDCT_STEREO_FER_DISCONTINUITIES + tmpF = add( tmpF, tmp ); /* Q15 */ +#endif } } ELSE -- GitLab