Commit 23344eef authored by reutelhuber's avatar reutelhuber
Browse files

some cleanup

parent 3541dabb
Loading
Loading
Loading
Loading
Loading
+18 −11
Original line number Diff line number Diff line
@@ -1309,28 +1309,35 @@ void decoder_tcx_noisefilling(
        IGFDecReplicateTCX10State( st->hIGFDec );
    }

    if ( st->igf )
#ifdef FIX_IGF_NOISE_REPETITION
    if ( st->element_mode != EVS_MONO )
    {
        if ( bfi && st->element_mode != EVS_MONO )
        if ( bfi )
        {
            *st->hIGFDec->igfData.igfInfo.nfSeed = (int16_t) ( st->seed_tcx_plc * 31821L + 13849L );
            nf_seed = st->seed_tcx_plc;
        }
        else
        else if ( nf_seed == 0 )
        {
            nf_seed = *st->hIGFDec->igfData.igfInfo.nfSeed;
        }
    }
#endif

    if ( st->igf )
    {
#ifdef FIX_IGF_NOISE_REPETITION
            if ( nf_seed == 0 && st->element_mode != EVS_MONO )
        *st->hIGFDec->igfData.igfInfo.nfSeed = (int16_t) ( nf_seed * 31821L + 13849L );
#else
        if ( bfi && st->element_mode != EVS_MONO )
        {
                *st->hIGFDec->igfData.igfInfo.nfSeed = (int16_t) ( *st->hIGFDec->igfData.igfInfo.nfSeed * 31821L + 13849L );
            *st->hIGFDec->igfData.igfInfo.nfSeed = (int16_t) ( st->seed_tcx_plc * 31821L + 13849L );
        }
        else
        {
            *st->hIGFDec->igfData.igfInfo.nfSeed = (int16_t) ( nf_seed * 31821L + 13849L );
        }
#else
            *st->hIGFDec->igfData.igfInfo.nfSeed = (int16_t) ( nf_seed * 31821L + 13849L );
#endif
    }
    }

    return;
}