diff options
author | Paul B Mahol <onemda@gmail.com> | 2023-05-30 00:52:36 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2023-05-30 02:16:45 +0200 |
commit | 12acbcb7a28fc96760b3387c3360fc867434b76c (patch) | |
tree | ea2f6cd2da3a873312e399969006a099bb13f848 | |
parent | ac6a6d1abf4e7d7f4b36eceaa47a37eb933bd38f (diff) | |
download | ffmpeg-12acbcb7a28fc96760b3387c3360fc867434b76c.tar.gz |
avfilter/f_graphmonitor: always output last frame on EOF
-rw-r--r-- | libavfilter/f_graphmonitor.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |