[FFmpeg-cvslog] avfilter/avf_showcwt: simplify EOF checking

Paul B Mahol git at videolan.org
Mon Jul 10 19:53:17 EEST 2023


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Jul 10 15:33:29 2023 +0200| [1324698ff306bde4dad392832f96b62b9e4284ed] | committer: Paul B Mahol

avfilter/avf_showcwt: simplify EOF checking

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

 libavfilter/avf_showcwt.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavfilter/avf_showcwt.c b/libavfilter/avf_showcwt.c
index 8b88148815..a3aa7627ec 100644
--- a/libavfilter/avf_showcwt.c
+++ b/libavfilter/avf_showcwt.c
@@ -1037,8 +1037,7 @@ static int activate(AVFilterContext *ctx)
         }
     }
 
-    if (s->eof && s->eof_pts != AV_NOPTS_VALUE &&
-        (s->old_pts + 1 >= s->eof_pts || (s->slide == SLIDE_FRAME))) {
+    if (s->eof) {
         if (s->slide == SLIDE_FRAME)
             ret = output_frame(ctx);
         ff_outlink_set_status(outlink, AVERROR_EOF, s->eof_pts);



More information about the ffmpeg-cvslog mailing list