Commit c402afe0 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Merge branch '3gpp_issue_769_fix' into 'main'

Fix for issue 769: Instability in stereo synthesis at 48 kbps

See merge request !377
parents d6c88b7f 41ec68e5
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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 ) ) );