avfilter/f_graphmonitor: always output last frame on EOF

pull/389/head
Paul B Mahol 2 years ago
parent ac6a6d1abf
commit 12acbcb7a2
  1. 2
      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)) {

Loading…
Cancel
Save