From e15cfafe0aa75d6c77ca478eb1acae41332834c7 Mon Sep 17 00:00:00 2001 From: Sandesh Venkatesh Date: Sat, 19 Oct 2024 14:10:46 +0530 Subject: [PATCH] Fix for issue 939: Decoder crash for Stereo EVS Downmix with FER and rateswitching in E_LPC_f_isp_a_conversion() --- lib_com/lsf_tools_fx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib_com/lsf_tools_fx.c b/lib_com/lsf_tools_fx.c index 143821c93..61e9366c9 100644 --- a/lib_com/lsf_tools_fx.c +++ b/lib_com/lsf_tools_fx.c @@ -448,13 +448,13 @@ void E_LPC_f_isp_a_conversion( const Word16 *isp, Word16 *a, const Word16 m ) /* a[i] = 0.5*(f1[i] + f2[i]) */ t0 = L_add( f1[i], f2[i] ); /* f1[i] + f2[i] */ t0 = L_shl( t0, q ); - a[i] = round_fx( t0 ); /* from Q23 to Q12 and * 0.5 */ + a[i] = round_fx_sat( t0 ); /* from Q23 to Q12 and * 0.5 */ move16(); /* a[j] = 0.5*(f1[i] - f2[i]) */ t0 = L_sub( f1[i], f2[i] ); /* f1[i] - f2[i] */ t0 = L_shl( t0, q ); - a[j] = round_fx( t0 ); /* from Q23 to Q12 and * 0.5 */ + a[j] = round_fx_sat( t0 ); /* from Q23 to Q12 and * 0.5 */ move16(); j = sub( j, 1 ); -- GitLab