avfilter/f_graphmonitor: always output last frame on EOF

This commit is contained in:
Paul B Mahol 2023-05-30 00:52:36 +02:00
parent ac6a6d1abf
commit 12acbcb7a2

View File

@ -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)) {