[vlc-devel] [PATCH 6/9] video_output: set the number of fields status in the filter.src_fmt
Steve Lhomme
robux4 at ycbcr.xyz
Mon Nov 16 13:44:17 CET 2020
---
src/video_output/video_output.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 54e980cc617..3eb70a51f35 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1104,6 +1104,8 @@ static picture_t *ThreadDisplayPreparePicture(vout_thread_sys_t *vout, bool reus
vlc_video_context_Release(sys->filter.src_vctx);
sys->filter.src_vctx = pic_vctx ? vlc_video_context_Hold(pic_vctx) : NULL;
+ sys->filter.src_fmt.i_num_fields = decoded->i_nb_fields % 2;
+
ThreadChangeFilters(vout, sys->filter.new_interlaced, can_flush);
}
--
2.26.2
More information about the vlc-devel
mailing list