[vlc-commits] v4l: chroma must be provided in fmt.video

Pierre Lamot git at videolan.org
Thu Sep 7 12:14:02 CEST 2017


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Wed Sep  6 15:01:01 2017 +0200| [173ca1846d5642378b6e06134d66610f11fc629d] | committer: Jean-Baptiste Kempf

v4l: chroma must be provided in fmt.video

This information may be required by downstream elements such as chroma converter

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=173ca1846d5642378b6e06134d66610f11fc629d
---

 modules/access/v4l2/demux.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/access/v4l2/demux.c b/modules/access/v4l2/demux.c
index 159b39233f..47514a14c0 100644
--- a/modules/access/v4l2/demux.c
+++ b/modules/access/v4l2/demux.c
@@ -392,6 +392,7 @@ static int InitVideo (demux_t *demux, int fd, uint32_t caps)
     es_format_t es_fmt;
 
     es_format_Init (&es_fmt, VIDEO_ES, selected->vlc);
+    es_fmt.video.i_chroma = selected->vlc;
     es_fmt.video.i_rmask = selected->red;
     es_fmt.video.i_gmask = selected->green;
     es_fmt.video.i_bmask = selected->blue;



More information about the vlc-commits mailing list