From 742401242c6018b7c9cd1a68f7416eb194b6b485 Mon Sep 17 00:00:00 2001 From: Sandesh Venkatesh Date: Mon, 30 Jun 2025 15:39:43 +0530 Subject: [PATCH] Fix for 3GPP issue 1780: ParamISM4 at 32kbps EXT Decoder output at 16kHz is zero Link #1780 --- lib_dec/ivas_ism_param_dec_fx.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib_dec/ivas_ism_param_dec_fx.c b/lib_dec/ivas_ism_param_dec_fx.c index f3e37c5c0..c8f6694e7 100644 --- a/lib_dec/ivas_ism_param_dec_fx.c +++ b/lib_dec/ivas_ism_param_dec_fx.c @@ -1339,14 +1339,14 @@ void ivas_ism_param_dec_tc_gain_ajust_fx( { gain_fx = 0; move16(); - tmp_e1 = 31; + tmp_e1 = 0; move16(); } - ELSE - { /*handling denominator equals to zero*/ - gain_fx = 1; + ELSE /*handling denominator equals to zero*/ + { + gain_fx = 32767; //(max value of Word16 in Q0) move16(); - tmp_e1 = -32767; //(-1.0f in Q15) + 1 + tmp_e1 = 15; move16(); } } -- GitLab