Commit 6fe5bbb0 authored by vaclav's avatar vaclav
Browse files

add missing check against NULL

parent c9e8019e
Loading
Loading
Loading
Loading
Loading
+13 −10
Original line number Diff line number Diff line
@@ -1803,6 +1803,8 @@ void decoder_tcx_post_ivas_fx( Decoder_State *st_fx,
        }

        /* run lpc gain compensation not for waveform adjustment */
        IF( st_fx->hPlcInfo != NULL )
        {
            test();
            IF( 0 == st_fx->enablePlcWaveadjust || EQ_16( st_fx->hPlcInfo->concealment_method, TCX_TONAL ) )
            {
@@ -1817,6 +1819,7 @@ void decoder_tcx_post_ivas_fx( Decoder_State *st_fx,
            st_fx->hPlcInfo->step_concealgain_fx = round_fx_sat( L_shl_sat( L_mult0( round_fx_sat( L_shr_sat( step, sub( 1, step_e ) ) ), round_fx_sat( L_shl_sat( L_mult0( st_fx->L_frame, getInvFrameLen( hTcxDec->L_frameTCX ) ), 8 ) ) ), 4 ) ); /*Q15*/
            move16();
        }
    }

    /*-----------------------------------------------------------*
     * Memory update                                             *