Commit f358b4cc authored by vaclav's avatar vaclav
Browse files

removal of unnecessary assignment and one sanity condition (before the...

removal of unnecessary assignment and one sanity condition (before the parameter `st->hPlcInfo->concealment_method` was uninitialized)
parent f20b379c
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -152,7 +152,11 @@ void decoder_tcx_post(
    if ( bfi && !st->use_partial_copy )
    {
        /* run lpc gain compensation not for waveform adjustment */
#ifdef FIX_124_DONT_ALLOC_PLCINFO_IN_IVAS
        if ( !st->enablePlcWaveadjust || ( st->hPlcInfo != NULL && st->hPlcInfo->concealment_method == TCX_TONAL ) )
#else
        if ( !st->enablePlcWaveadjust || st->hPlcInfo->concealment_method == TCX_TONAL )
#endif
        {
            float gainHelperFB = hTcxDec->gainHelper;
            float stepCompensateFB = hTcxDec->stepCompensate * st->L_frame / hTcxDec->L_frameTCX;
+2 −1
Original line number Diff line number Diff line
@@ -689,8 +689,9 @@ ivas_error init_decoder(
        st->hTECDec = NULL;
    }

#ifndef FIX_124_DONT_ALLOC_PLCINFO_IN_IVAS // the initialziation is done in open_decoder_LPD()
    st->enablePlcWaveadjust = 0;

#endif
    /* Init Core Decoder */
    open_decoder_LPD( st, st->total_brate, st->last_total_brate, st->bwidth, 0, st->element_mode, 1 );