From bf2998e479f93e0615081e997b7c1152a5327948 Mon Sep 17 00:00:00 2001 From: Sandesh Venkatesh Date: Mon, 21 Oct 2024 12:11:45 +0530 Subject: [PATCH] Fix for 3GPP issue 936: Distortion in ISM2 with FER 10% BINAURAL output 96kbps --- lib_dec/tonalMDCTconcealment_fx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib_dec/tonalMDCTconcealment_fx.c b/lib_dec/tonalMDCTconcealment_fx.c index 93e2f24cc..fa49a85f3 100644 --- a/lib_dec/tonalMDCTconcealment_fx.c +++ b/lib_dec/tonalMDCTconcealment_fx.c @@ -1283,7 +1283,7 @@ void TonalMDCTConceal_Detect_ivas_fx( nSamples = hTonalMDCTConc->nNonZeroSamples; move16(); - s = getScaleFactor32( secondLastMDST, nSamples ); + s = sub( getScaleFactor32( secondLastMDST, nSamples ), 1 ); FOR( i = 0; i < nSamples; i++ ) { @@ -1292,7 +1292,7 @@ void TonalMDCTConceal_Detect_ivas_fx( } secondLastMDST_exp = sub( secondLastMDST_exp, s ); move16(); - s = getScaleFactor32( secondLastMDCT, nSamples ); + s = sub( getScaleFactor32( secondLastMDCT, nSamples ), 1 ); FOR( i = 0; i < nSamples; i++ ) { -- GitLab