[FFmpeg-cvslog] avfilter/vf_decimate: also check for ready frames if not ppsrc is used
Paul B Mahol
git at videolan.org
Sun Mar 13 22:58:14 EET 2022
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Mar 13 21:54:25 2022 +0100| [19614921e949af1908f46984cc608b67a396babb] | committer: Paul B Mahol
avfilter/vf_decimate: also check for ready frames if not ppsrc is used
Fixes filtering when cascading multiple decimate filters.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=19614921e949af1908f46984cc608b67a396babb
---
libavfilter/vf_decimate.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavfilter/vf_decimate.c b/libavfilter/vf_decimate.c
index d48823fa29..01404e6fec 100644
--- a/libavfilter/vf_decimate.c
+++ b/libavfilter/vf_decimate.c
@@ -289,8 +289,8 @@ static int activate(AVFilterContext *ctx)
}
}
- if (ff_inlink_queued_frames(ctx->inputs[INPUT_MAIN]) > 0 &&
- (dm->ppsrc && ff_inlink_queued_frames(ctx->inputs[INPUT_CLEANSRC]) > 0)) {
+ if (ff_inlink_queued_frames(ctx->inputs[INPUT_MAIN]) > 0 && (!dm->ppsrc ||
+ (dm->ppsrc && ff_inlink_queued_frames(ctx->inputs[INPUT_CLEANSRC]) > 0))) {
ff_filter_set_ready(ctx, 100);
} else if (ff_outlink_frame_wanted(ctx->outputs[0])) {
if (dm->got_frame[INPUT_MAIN] == 0)
More information about the ffmpeg-cvslog
mailing list