Attached.
From 8ce6bd0090666ef94b0455b7f8f4d3c05e273093 Mon Sep 17 00:00:00 2001 From: Paul B Mahol <[email protected]> Date: Mon, 27 Nov 2023 13:04:16 +0100 Subject: [PATCH] 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. Signed-off-by: Paul B Mahol <[email protected]> --- libavfilter/framesync.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavfilter/framesync.c b/libavfilter/framesync.c index 6cb4b21fed..23681b5183 100644 --- a/libavfilter/framesync.c +++ b/libavfilter/framesync.c @@ -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; -- 2.42.1
_______________________________________________ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
