[vlc-devel] [PATCH 5/9] video_output: force deinterlacing filter is the source has one field at a time

Steve Lhomme robux4 at ycbcr.xyz
Mon Nov 16 13:44:16 CET 2020


Forcing a merge of 2 fields will allow for cleaner display of the source, even
if the interlacing flag is not set or not received yet (HEVC).
---
 src/video_output/video_output.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 89b5241dc7d..54e980cc617 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1092,7 +1092,8 @@ static picture_t *ThreadDisplayPreparePicture(vout_thread_sys_t *vout, bool reus
                 }
 
                 bool had_deint = sys->filter.new_interlaced;
-                vout_SetInterlacingState(&vout->obj.obj, !decoded->b_progressive);
+                vout_SetInterlacingState(&vout->obj.obj, !decoded->b_progressive ||
+                                                         decoded->i_nb_fields == 1);
 
                 if (sys->filter.changed || had_deint != sys->filter.new_interlaced)
                 {
-- 
2.26.2



More information about the vlc-devel mailing list