From 60c68934b60bfbe77f1deed89f3ae69596cfb9f4 Mon Sep 17 00:00:00 2001 From: Sandesh Venkatesh Date: Tue, 20 Feb 2024 12:16:51 +0530 Subject: [PATCH] Crash Fix: round_fx causing overflow --- lib_dec/tonalMDCTconcealment_fx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib_dec/tonalMDCTconcealment_fx.c b/lib_dec/tonalMDCTconcealment_fx.c index c5fcf4149..373b83108 100644 --- a/lib_dec/tonalMDCTconcealment_fx.c +++ b/lib_dec/tonalMDCTconcealment_fx.c @@ -1661,7 +1661,7 @@ void TonalMDCTConceal_InsertNoise_ivas_fx( nrgNoiseInLastFrame = L_shr( nrgNoiseInLastFrame, 1 ); exp = add( exp, 1 ); } - tmp = div_l( nrgNoiseInLastFrame, round_fx( nrgWhiteNoise ) ); + tmp = div_l( nrgNoiseInLastFrame, extract_h( nrgWhiteNoise ) ); tmp = Sqrt16( tmp, &exp ); g = mult_r( g, tmp ); -- GitLab