From ae3d6e22e65e60c71646c7c438f2d1ca9f128544 Mon Sep 17 00:00:00 2001 From: Sandesh Venkatesh Date: Thu, 25 Jul 2024 09:01:52 +0530 Subject: [PATCH] Fix for 3GPP issue 817: Fixes LTV crash issue for 10dB Multi Channel stream [x] Test case - 10dB ltv-Multi-channel 5_1 at 13.2 kbps, 48kHz in, 48kHz out --- lib_dec/dec_uv_fx.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib_dec/dec_uv_fx.c b/lib_dec/dec_uv_fx.c index 182c89ef7..8a4f4c05e 100644 --- a/lib_dec/dec_uv_fx.c +++ b/lib_dec/dec_uv_fx.c @@ -363,7 +363,11 @@ static void gain_dec_gacelp_uv_fx( *past_gcode = L_shl( L_tmp1, sub( exp_L_tmp1, 15 ) ); /* Q16 */ move32(); +#ifdef BASOP_NOGLOB + *gain_code = L_shl_sat( Mpy_32_16_1( *past_gcode, *gain_inov ), 3 ); +#else *gain_code = L_shl( Mpy_32_16_1( *past_gcode, *gain_inov ), 3 ); +#endif move32(); -- GitLab