vlc | branch: master | Pierre Lamot <[email protected]> | Wed Sep 6 15:01:01 2017 +0200| [3c3d79963044a101e1014885467afdf5a8b30ceb] | 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 <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3c3d79963044a101e1014885467afdf5a8b30ceb --- 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; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
