From 5c1e7d54e55de0a64a6d89839b29ebf17114debf Mon Sep 17 00:00:00 2001 From: Sandesh Venkatesh Date: Fri, 15 Nov 2024 08:42:49 +0530 Subject: [PATCH] Fix for 3GPP issue 1041: Decoder crash for Stereo at 32kbps JBM operation in stereo_dft_res_ecu_burst_att_fx() link #1041 --- lib_dec/ivas_stereo_dft_plc_fx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib_dec/ivas_stereo_dft_plc_fx.c b/lib_dec/ivas_stereo_dft_plc_fx.c index a8bb5a6e6..875f50ac5 100644 --- a/lib_dec/ivas_stereo_dft_plc_fx.c +++ b/lib_dec/ivas_stereo_dft_plc_fx.c @@ -760,7 +760,7 @@ void stereo_dft_res_ecu_burst_att_fx( } ELSE { - fac = L_sub( MAX_32, L_deposit_h( BASOP_Util_Divide3232_Scale( sub( hStereoDft->time_offs, L_ana ), add( hStereoDft->time_offs, L_ana ), &q_fac ) ) ); /* Q0 */ + fac = L_sub( MAX_32, L_deposit_h( BASOP_Util_Divide3232_Scale( L_sub( hStereoDft->time_offs, L_ana ), L_add( hStereoDft->time_offs, L_ana ), &q_fac ) ) ); /* Q0 */ } v_multc_fixed( pDFT_RES, fac, pDFT_RES, shl( L_res, 1 ) ); -- GitLab