Commit 7fd36f96 authored by Fabian Bauer's avatar Fabian Bauer
Browse files

fix init - init timedatabuffer in ivas path

parent 5c75ced6
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -274,9 +274,13 @@ ivas_error TonalMDCTConceal_Init_ivas_fx(
    move16();
    /* just the second half of the second last pcm output is needed */

#ifndef HARMONIZE_2553_TonalConceal_Init
    set16_fx( hTonalMDCTConc->timeDataBuffer, 0, ( 3 * L_FRAME_MAX ) / 2 );
#ifdef HARMONIZE_2553_TonalConceal_Init
    IF( GT_16( element_mode, EVS_MONO ) )
#endif
    {
        set16_fx( hTonalMDCTConc->timeDataBuffer, 0, ( 3 * L_FRAME_MAX ) / 2 );
    }

    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 */