From ce297cfd0c8170838d2566da371a969ef4f0fe23 Mon Sep 17 00:00:00 2001 From: Sandesh Venkatesh Date: Sun, 20 Oct 2024 10:16:22 +0530 Subject: [PATCH] Add saturation at other points for issue 939 --- 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 61e9366c9..a28f58851 100644 --- a/lib_com/lsf_tools_fx.c +++ b/lib_com/lsf_tools_fx.c @@ -480,11 +480,11 @@ void E_LPC_f_isp_a_conversion( const Word16 *isp, Word16 *a, const Word16 m ) } WHILE( t0n == 0 || t0p == 0 ); /*in case of overflow, recalculate coefficients*/ - a[nc] = round_fx( t0 ); /* from Q23 to Q12 and * 0.5 */ + a[nc] = round_fx_sat( t0 ); /* from Q23 to Q12 and * 0.5 */ move16(); /* a[m] = isp[m-1] */ t0 = L_mult( a[0], isp[m - 1] ); /* from Q15 to Q12 */ - a[m] = round_fx( t0 ); + a[m] = round_fx_sat( t0 ); move16(); return; -- GitLab