[FFmpeg-cvslog] avfilter/f_graphmonitor: always output last frame on EOF

Paul B Mahol git at videolan.org
Tue May 30 03:36:56 EEST 2023


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue May 30 00:52:36 2023 +0200| [12acbcb7a28fc96760b3387c3360fc867434b76c] | committer: Paul B Mahol

avfilter/f_graphmonitor: always output last frame on EOF

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=12acbcb7a28fc96760b3387c3360fc867434b76c
---

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



More information about the ffmpeg-cvslog mailing list