Commit cfd5b3e5 authored by Jan Kiene's avatar Jan Kiene
Browse files

update igf noise seed correctly in MDCT-St PLC

parent 9d1d7ebc
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -513,7 +513,11 @@ void TonalMDCTConceal_InsertNoise(
    wmops_sub_start( "InsertNoise" );

    g = 1.0f - crossfadeGain;
#ifdef MDCT_STEREO_PLC_FADE_2_BG_NOISE
    if ( !hTonalMDCTConc->lastBlockData.blockIsConcealed && concealment_noise != NULL )
#else
    if ( !hTonalMDCTConc->lastBlockData.blockIsConcealed )
#endif
    {
        rnd = 1977;
    }
@@ -1108,6 +1112,8 @@ void TonalMdctConceal_create_concealment_noise(
        *rnd_c = save_rnd_c;
    }

    st->seed_tcx_plc = *rnd;

    wmops_sub_end();

    return;