[vlc-commits] v4l2: add H264 codec

Rémi Denis-Courmont git at videolan.org
Sat Mar 24 18:48:56 CET 2012


vlc/vlc-2.0 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Mar 24 19:48:06 2012 +0200| [456189991df0d93beb1ede88917796a1c0d8e1ca] | committer: Rémi Denis-Courmont

v4l2: add H264 codec

This will only be used if requested explicitly,
that is to say '--v4l2-chroma=h264'.

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=456189991df0d93beb1ede88917796a1c0d8e1ca
---

 modules/access/v4l2/video.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/access/v4l2/video.c b/modules/access/v4l2/video.c
index 6bc4055..938215d 100644
--- a/modules/access/v4l2/video.c
+++ b/modules/access/v4l2/video.c
@@ -499,6 +499,9 @@ static const struct
     /* Compressed data types */
     { V4L2_PIX_FMT_MJPEG,   VLC_CODEC_MJPG, 0, 0, 0 },
     { V4L2_PIX_FMT_JPEG,    VLC_CODEC_JPEG, 0, 0, 0 },
+#ifdef V4L2_PIX_FMT_H264
+    { V4L2_PIX_FMT_H264,    VLC_CODEC_H264, 0, 0, 0 },
+#endif
 #if 0
     { V4L2_PIX_FMT_DV,      VLC_FOURCC('?','?','?','?') },
     { V4L2_PIX_FMT_MPEG,    VLC_FOURCC('?','?','?','?') },



More information about the vlc-commits mailing list