From 1a4b8070ff968a07dc24467922849c1142995e30 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 14 Sep 2021 19:14:24 +0100 Subject: [PATCH] deint_v4l2m2m: increase input and output buffers Required for advanced deinterlacer on pi --- libavfilter/vf_deinterlace_v4l2m2m.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_deinterlace_v4l2m2m.c b/libavfilter/vf_deinterlace_v4l2m2m.c index a545d551d9ee..0adc96d25435 100644 --- a/libavfilter/vf_deinterlace_v4l2m2m.c +++ b/libavfilter/vf_deinterlace_v4l2m2m.c @@ -954,9 +954,9 @@ static av_cold int deint_v4l2m2m_init(AVFilterContext *avctx) priv->shared = ctx; ctx->fd = -1; ctx->output.ctx = ctx; - ctx->output.num_buffers = 6; + ctx->output.num_buffers = 8; ctx->capture.ctx = ctx; - ctx->capture.num_buffers = 6; + ctx->capture.num_buffers = 8; ctx->done = 0; ctx->field_order = V4L2_FIELD_ANY; ctx->cur_in_frame = NULL;