Commit f556cacd authored by vaclav's avatar vaclav
Browse files

fix EVS decoder when two first frames are lost

parent 1943032e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1082,7 +1082,7 @@ ivas_error IVAS_DEC_GetSamplesDecoder(
    }

#ifdef NONBE_1293_CRASH_FIRST_FRAME_LOST
    if ( !hIvasDec->hasBeenFedFirstGoodFrame && !hIvasDec->isInitialized )
    if ( !hIvasDec->hasBeenFedFirstGoodFrame && !hIvasDec->isInitialized ) /* note: 'isInitialized' is related to EVS decoder */
    {
        return IVAS_ERR_OK;
    }
@@ -1615,7 +1615,7 @@ ivas_error IVAS_DEC_PrepareRenderer(
    }

#ifdef NONBE_1293_CRASH_FIRST_FRAME_LOST
    if ( hIvasDec->hasBeenFedFirstGoodFrame )
    if ( hIvasDec->hasBeenFedFirstGoodFrame || hIvasDec->isInitialized ) /* note: 'isInitialized' is related to EVS decoder */
#endif
    {
        ivas_dec_prepare_renderer( hIvasDec->st_ivas );