From f902cd88af8118f597ea94ed0cf9cf9ed10a6be9 Mon Sep 17 00:00:00 2001 From: Sandesh Venkatesh Date: Sat, 19 Oct 2024 11:26:27 +0530 Subject: [PATCH] Fix for 3GPP issue 923 [x] Q handling updates --- lib_dec/ivas_lfe_plc_fx.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib_dec/ivas_lfe_plc_fx.c b/lib_dec/ivas_lfe_plc_fx.c index 6df34c92a..efd158caf 100644 --- a/lib_dec/ivas_lfe_plc_fx.c +++ b/lib_dec/ivas_lfe_plc_fx.c @@ -795,7 +795,11 @@ static Word16 d_a2rc_fx( exp2 = sub( norm_l( temp1 ), 1 ); temp = Mpy_32_32( L_shl( km_fx, exp1 ), L_shl( temp1, exp2 ) ); temp_q = sub( add( add( km_q_fx, exp1 ), add( temp_q1, exp2 ) ), 31 ); - + if ( temp == 0 ) + { + temp_q = 31; + move16(); + } IF( LT_16( temp_q, temp_q1 ) ) { ff_fx[j] = L_add( L_shr( temp1, sub( temp_q1, temp_q ) ), temp ); -- GitLab