From 30aea1c8e2112a3bcdde0116b2ebe21d24b736f1 Mon Sep 17 00:00:00 2001 From: Sandesh Venkatesh Date: Wed, 4 Dec 2024 17:40:34 +0530 Subject: [PATCH 1/2] Fix for 3GPP issue 895: Bitrate switching quality issue --- lib_dec/core_switching_dec_fx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib_dec/core_switching_dec_fx.c b/lib_dec/core_switching_dec_fx.c index 9fe83efc7..3f581b65d 100644 --- a/lib_dec/core_switching_dec_fx.c +++ b/lib_dec/core_switching_dec_fx.c @@ -1832,7 +1832,7 @@ ivas_error core_switching_post_dec_ivas_fx( L_tmp2 = 0; move32(); move32(); - tmp = st_fx->previoussynth_fx[i + delay_comp]; + tmp = shl(st_fx->previoussynth_fx[i + delay_comp], *Qsynth); L_tmp = L_mac0( L_tmp, div_s( i, tmpDelta ), synth[i + delay_comp] ); /* Qsynth */ L_tmp = L_shl( L_tmp, 1 ); L_tmp2 = L_mac0( L_tmp2, div_s( sub( tmpDelta, i ), tmpDelta ), tmp ); /* Qsynth */ -- GitLab From 9ad2a621fd97e5d24eb3de61a775cf7c9ebd3503 Mon Sep 17 00:00:00 2001 From: Sandesh Venkatesh Date: Wed, 4 Dec 2024 17:43:57 +0530 Subject: [PATCH 2/2] Clang formatting changes --- lib_dec/core_switching_dec_fx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib_dec/core_switching_dec_fx.c b/lib_dec/core_switching_dec_fx.c index 3f581b65d..97ba07266 100644 --- a/lib_dec/core_switching_dec_fx.c +++ b/lib_dec/core_switching_dec_fx.c @@ -1832,7 +1832,7 @@ ivas_error core_switching_post_dec_ivas_fx( L_tmp2 = 0; move32(); move32(); - tmp = shl(st_fx->previoussynth_fx[i + delay_comp], *Qsynth); + tmp = shl( st_fx->previoussynth_fx[i + delay_comp], *Qsynth ); L_tmp = L_mac0( L_tmp, div_s( i, tmpDelta ), synth[i + delay_comp] ); /* Qsynth */ L_tmp = L_shl( L_tmp, 1 ); L_tmp2 = L_mac0( L_tmp2, div_s( sub( tmpDelta, i ), tmpDelta ), tmp ); /* Qsynth */ -- GitLab