[vlc-devel] [PATCH] access: decklink: Set video chroma format

Julian Scheel julian at jusst.de
Wed Sep 27 17:11:20 CEST 2017


A properly set chroma field is required for automatic filter selection
to work. As this is raw video chroma and codec are equal.

Signed-off-by: Julian Scheel <julian at jusst.de>
---
 modules/access/decklink.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/access/decklink.cpp b/modules/access/decklink.cpp
index 3c66544e77..4c5f826fbd 100644
--- a/modules/access/decklink.cpp
+++ b/modules/access/decklink.cpp
@@ -188,6 +188,7 @@ static es_format_t GetModeSettings(demux_t *demux, IDeckLinkDisplayMode *m)
     vlc_fourcc_t chroma = sys->tenbits ? VLC_CODEC_I422_10L : VLC_CODEC_UYVY;
     es_format_Init(&video_fmt, VIDEO_ES, chroma);
 
+    video_fmt.video.i_chroma = chroma;
     video_fmt.video.i_width = m->GetWidth();
     video_fmt.video.i_height = m->GetHeight();
     video_fmt.video.i_sar_num = 1;
-- 
2.14.1



More information about the vlc-devel mailing list