Commit aeb47113 authored by Dominik Weckbecker's avatar Dominik Weckbecker 💬
Browse files

add comment to explain the condition to decode a frame

parent 8c9b8cc3
Loading
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -917,7 +917,10 @@ ivas_error IVAS_DEC_FeedFrame_Serial(
    hIvasDec->nSamplesAvailableNext = hIvasDec->nSamplesFrame;

#ifdef OBJ_EDITING_API
    /* decode TCs, do TSM and feed to renderer */
    /* Decode TCs, do TSM and feed to renderer.
           If TSM is generally enabled, we have to wait for the first good frame.
           Otherwise, we directly decode the first frame in any case.
        */
    if ( ( hIvasDec->st_ivas->hDecoderConfig->Opt_tsm && hIvasDec->hasBeenFedFirstGoodFrame ) || !hIvasDec->st_ivas->hDecoderConfig->Opt_tsm )
    {
        uint16_t l_ts, nTimeScalerOutSamples;