From 1a983c58d4affdad0a1453dd1c79ee6472aa063c Mon Sep 17 00:00:00 2001 From: Sandesh Venkatesh Date: Mon, 7 Jul 2025 12:17:37 +0530 Subject: [PATCH] Fix for LTV crash observed for encoder in CI - xes Encoder original crash for test stream ltv_basop_encoder-OMASA 2TC 3ISM at br sw techs 13.2 to 512 kbps start 24.4 kbps, 32kHz in, 48kHz out, BINAURAL out - Cause: In inov_encode, the h2 buffer (derived from h1) exceeds Q12 range (>8.0f) in float. - Fix: Added saturation when scaling h2 to Q12 --- lib_enc/inov_enc_fx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib_enc/inov_enc_fx.c b/lib_enc/inov_enc_fx.c index 9c78ccf7f..02ef25096 100644 --- a/lib_enc/inov_enc_fx.c +++ b/lib_enc/inov_enc_fx.c @@ -587,7 +587,7 @@ Word16 inov_encode_ivas_fx( set16_fx( y2, 0, L_SUBFR ); Qh2 = sub( 14, norm_s( h2[0] ) ); - scale_sig( h2, L_SUBFR, sub( Q12, Qh2 ) ); + Scale_sig( h2, L_SUBFR, sub( Q12, Qh2 ) ); IF( !Opt_AMR_WB ) { -- GitLab