]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/vf_interlace: do not interlace already interlaced frames
authorMarton Balint <cus@passwd.hu>
Fri, 6 Dec 2019 10:02:36 +0000 (11:02 +0100)
committerMarton Balint <cus@passwd.hu>
Sat, 14 Dec 2019 23:23:03 +0000 (00:23 +0100)
The filter used to work this way before it was merged into tinterlace.

Signed-off-by: Marton Balint <cus@passwd.hu>
libavfilter/vf_tinterlace.c

index 0ee40ffce662e7fd563c0eed121bbd5cbf168225..a77753775c955d5b1635b2b74fad80b816ece86f 100644 (file)
@@ -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)