Commit 12acbcb7 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/f_graphmonitor: always output last frame on EOF

parent ac6a6d1a
......@@ -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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment