1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-29 22:00:58 +02:00

avfilter/avf_showcwt: simplify EOF checking

This commit is contained in:
Paul B Mahol 2023-07-10 15:33:29 +02:00
parent 2f2f76def7
commit 1324698ff3

View File

@ -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);