avfilter/framesync: fix OOM case

Fixes OOM when caller keeps adding frames into filtergraph
that reached EOF by other means, for example EOF is signalled
by other filter in filtergraph or by buffersink.
This commit is contained in:
Paul B Mahol 2023-11-27 13:04:16 +01:00
parent 47e214245b
commit a30adf9f96

View File

@ -354,8 +354,11 @@ static int consume_from_fifos(FFFrameSync *fs)
int ff_framesync_activate(FFFrameSync *fs)
{
AVFilterContext *ctx = fs->parent;
int ret;
FF_FILTER_FORWARD_STATUS_BACK_ALL(ctx->outputs[0], ctx);
ret = framesync_advance(fs);
if (ret < 0)
return ret;