From 12acbcb7a28fc96760b3387c3360fc867434b76c Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 30 May 2023 00:52:36 +0200 Subject: [PATCH] avfilter/f_graphmonitor: always output last frame on EOF --- libavfilter/f_graphmonitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/f_graphmonitor.c b/libavfilter/f_graphmonitor.c index a1e467bc8b..3a2760ed8c 100644 --- a/libavfilter/f_graphmonitor.c +++ b/libavfilter/f_graphmonitor.c @@ -516,7 +516,7 @@ static int activate(AVFilterContext *ctx) return 0; } - if (s->pts < s->next_pts && ff_outlink_frame_wanted(outlink)) + if (s->eof || (s->pts < s->next_pts && ff_outlink_frame_wanted(outlink))) return create_frame(ctx, s->pts); if (!s->eof && ff_inlink_acknowledge_status(inlink, &status, &pts)) {