From 4cd2cee7ed519f052ac6a92a0445763d79471d1c Mon Sep 17 00:00:00 2001 From: Marton Balint Date: Fri, 6 Dec 2019 11:02:36 +0100 Subject: [PATCH] avfilter/vf_interlace: do not interlace already interlaced frames The filter used to work this way before it was merged into tinterlace. Signed-off-by: Marton Balint --- libavfilter/vf_tinterlace.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/vf_tinterlace.c b/libavfilter/vf_tinterlace.c index 0ee40ffce6..a77753775c 100644 --- a/libavfilter/vf_tinterlace.c +++ b/libavfilter/vf_tinterlace.c @@ -529,6 +529,7 @@ static int init_interlace(AVFilterContext *ctx) if (tinterlace->mode <= MODE_BFF) tinterlace->mode += MODE_INTERLEAVE_TOP; + tinterlace->flags |= TINTERLACE_FLAG_BYPASS_IL; if (tinterlace->lowpass == VLPF_LIN) tinterlace->flags |= TINTERLACE_FLAG_VLPF; if (tinterlace->lowpass == VLPF_CMP)