From 37e3c531bcec2722e8832f6719877a575f1e5020 Mon Sep 17 00:00:00 2001 From: Sandesh Venkatesh Date: Mon, 31 Mar 2025 13:48:10 +0530 Subject: [PATCH] Scaling fix in find target and usan error fix --- lib_com/ivas_spar_com_fx.c | 2 +- lib_enc/find_tar_fx.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib_com/ivas_spar_com_fx.c b/lib_com/ivas_spar_com_fx.c index 5a0d342e9..317ea0249 100644 --- a/lib_com/ivas_spar_com_fx.c +++ b/lib_com/ivas_spar_com_fx.c @@ -7190,7 +7190,7 @@ void ivas_dirac_dec_get_response_fx_29( if ( GT_16( index_elevation, 90 ) ) { - e_fac = L_add( 0x80000000, 0 ); + e_fac = MIN_32; } diff --git a/lib_enc/find_tar_fx.c b/lib_enc/find_tar_fx.c index 4e15bc828..16ec45c78 100644 --- a/lib_enc/find_tar_fx.c +++ b/lib_enc/find_tar_fx.c @@ -203,6 +203,7 @@ void find_targets_ivas_fx( temp[i] = sub_sat( speech[i + i_subfr - M], mem_syn[i] ); /* Q_new - 1 */ move16(); } + Scale_sig( temp, M, 1 ); // scaling to make belong function output alligned //Qnew syn_filt_fx( 0, p_Aq, M, &res[i_subfr], temp + M, L_subfr, temp, 0 ); -- GitLab