[FFmpeg-devel] [PATCH 3/4] avfilter/vf_interlace: do not interlace already interlaced frames

Marton Balint cus at passwd.hu
Sat Dec 7 00:52:06 EET 2019


The filter used to work this way before it was merged into tinterlace.

Signed-off-by: Marton Balint <cus at passwd.hu>
---
 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)
-- 
2.16.4



More information about the ffmpeg-devel mailing list