aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/avf_showcwt.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2023-07-10 15:33:29 +0200
committerPaul B Mahol <onemda@gmail.com>2023-07-10 18:57:13 +0200
commit1324698ff306bde4dad392832f96b62b9e4284ed (patch)
treeac9a02e92aab8ae54bf0edfea1e6f9de2756927a /libavfilter/avf_showcwt.c
parent2f2f76def7dba9930b10a09a72f5045f39be9701 (diff)
downloadffmpeg-1324698ff306bde4dad392832f96b62b9e4284ed.tar.gz
avfilter/avf_showcwt: simplify EOF checking
Diffstat (limited to 'libavfilter/avf_showcwt.c')
-rw-r--r--libavfilter/avf_showcwt.c3
1 files changed, 1 insertions, 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);