From 41ec68e58784b04e10deea398b6e2eea30ad45f6 Mon Sep 17 00:00:00 2001 From: Sandesh Venkatesh Date: Thu, 13 Jun 2024 12:20:10 +0530 Subject: [PATCH] Fix for issue 769: Instability in stereo synthesis at 48 kbps --- lib_dec/ivas_stereo_mdct_core_dec_fx.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib_dec/ivas_stereo_mdct_core_dec_fx.c b/lib_dec/ivas_stereo_mdct_core_dec_fx.c index f1b88a8df..5ad8ef7e4 100644 --- a/lib_dec/ivas_stereo_mdct_core_dec_fx.c +++ b/lib_dec/ivas_stereo_mdct_core_dec_fx.c @@ -467,6 +467,14 @@ void stereo_mdct_core_dec_fx( { sts[ch]->hFdCngDec->hFdCngCom->likelihood_noisy_speech = extract_h( sts[ch]->hFdCngDec->hFdCngCom->likelihood_noisy_speech_32fx ); } + test(); + test(); + IF( NE_16( sts[ch]->igf, 0 ) && sts[ch]->hIGFDec && sts[ch]->hIGFDec->virtualSpec_fx ) + { + Scale_sig32( sts[ch]->hIGFDec->virtualSpec_fx + sub( sts[ch]->hIGFDec->infoIGFStartLine, IGF_START_MN ), s_min( sub( sts[ch]->hIGFDec->infoIGFStopLine, sts[ch]->hIGFDec->infoIGFStartLine ), 856 ), sub( sts[ch]->hIGFDec->virtualSpec_e, x_e[ch][0] ) ); + sts[ch]->hIGFDec->virtualSpec_e = x_e[ch][0]; + move16(); + } } Copy_Scale_sig_16_32( hCPE->hCoreCoder[0]->old_Aq_12_8_fx, hCPE->hCoreCoder[0]->old_Aq_12_8_fx_32, M + 1, ( 28 - norm_s( hCPE->hCoreCoder[0]->old_Aq_12_8_fx[0] - 1 ) ) ); -- GitLab