Commit 2bdf4f8a authored by Fabian Bauer's avatar Fabian Bauer
Browse files

Merge branch 'basop-2553-harmonize-tonalconcealment' of...

Merge branch 'basop-2553-harmonize-tonalconcealment' of ssh://forge.3gpp.org:29419/sa4/audio/ivas-basop into basop-2553-harmonize-tonalconcealment
parents 1d3e30dd d018606d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -293,6 +293,7 @@ ivas_error TonalMDCTConceal_Init_ivas_fx(
        hTonalMDCTConc->secondLastPcmOut = &hTonalMDCTConc->timeDataBuffer[( 3 * L_FRAME_MAX ) / 2 - ( 3 * s_min( L_FRAME_MAX, nSamples ) / 2 )];
        hTonalMDCTConc->lastPcmOut = &hTonalMDCTConc->timeDataBuffer[( 3 * L_FRAME_MAX ) / 2 - s_min( L_FRAME_MAX, nSamples )];
    }

    /* If the second last frame was lost, we reuse saved TonalComponentsInfo and don't update pcm buffers */
    assert( sizeof( *hTonalMDCTConc->pTCI ) <= ( hTonalMDCTConc->lastPcmOut - hTonalMDCTConc->timeDataBuffer ) * sizeof( hTonalMDCTConc->timeDataBuffer[0] ) );