Commit 5492bf80 authored by TYAGIRIS's avatar TYAGIRIS
Browse files

fix for bitrate switching

parent 2826d1a8
Loading
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1738,6 +1738,9 @@ ivas_error acelp_core_dec_fx(
                IF( st->idchan == 0 )
                {
                    set16_fx( st->hFdCngDec->hFdCngCom->olapBufferSynth2, 0, st->hFdCngDec->hFdCngCom->fftlen );
#ifdef FIX_1996_MASKING_NOISE
                    set32_fx( st->hFdCngDec->hFdCngCom->olapBufferSynth2_fx, 0, st->hFdCngDec->hFdCngCom->fftlen );
#endif                    
                }
                IF( hStereoCng != NULL && ( st->idchan == 0 ) )
                {
+3 −0
Original line number Diff line number Diff line
@@ -88,6 +88,9 @@ void initFdCngDec_ivas_fx(
    hFdCngDec->hFdCngCom->olapBufferAna = hFdCngDec->olapBufferAna;
    set16_fx( hFdCngDec->olapBufferSynth2, 0, FFTLEN );
    hFdCngDec->hFdCngCom->olapBufferSynth2 = hFdCngDec->olapBufferSynth2;
 #ifdef FIX_1996_MASKING_NOISE
    set32_fx( hFdCngDec->hFdCngCom->olapBufferSynth2_fx, 0, FFTLEN );
#endif    

    /* Set some counters and flags */