From 406d5a73a02731ef5a7da1e7f888360ec66138cd Mon Sep 17 00:00:00 2001 From: Sandesh Venkatesh Date: Sun, 20 Oct 2024 19:16:46 +0530 Subject: [PATCH] Fix for 3GPP issue 840: Bigger differences for short block frames in high-rate stereo --- lib_dec/igf_dec_fx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib_dec/igf_dec_fx.c b/lib_dec/igf_dec_fx.c index f44e073a4..74299beae 100644 --- a/lib_dec/igf_dec_fx.c +++ b/lib_dec/igf_dec_fx.c @@ -4253,10 +4253,10 @@ void IGFDecCopyLPCFlatSpectrum_fx( /* pSpectrumFlat_exp has to be multiplied with 1024 = 2^10 go achive proper gain values */ - hPrivateData->pSpecFlat_exp = add( pSpectrumFlat_exp, 10 ); + hPrivateData->pSpecFlat_exp = 30; move16(); - Copy32( pSpectrumFlat, hPrivateData->pSpecFlat, hGrid->startLine ); + Copy_Scale_sig32( pSpectrumFlat, hPrivateData->pSpecFlat, hGrid->startLine, sub( pSpectrumFlat_exp, 20 ) ); } } -- GitLab