Add support for the RGB32 pixel format in video4linux2 devices
authorJean Delvare <khali@linux-fr.org>
Fri, 5 Sep 2008 20:40:50 +0000 (20:40 +0000)
committerLuca Abeni <lucabe72@email.it>
Fri, 5 Sep 2008 20:40:50 +0000 (20:40 +0000)
Patch by Jean Delvare (khali AT linux-fr DOT org)

Originally committed as revision 15219 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavdevice/v4l2.c

index 034cdcf..0150c80 100644 (file)
@@ -114,12 +114,10 @@ static struct fmt_map fmt_conversion_table[] = {
         .ff_fmt = PIX_FMT_RGB24,
         .v4l2_fmt = V4L2_PIX_FMT_RGB24,
     },
-    /*
     {
-        .ff_fmt = PIX_FMT_RGB32,
+        .ff_fmt = PIX_FMT_BGRA,
         .v4l2_fmt = V4L2_PIX_FMT_BGR32,
     },
-    */
     {
         .ff_fmt = PIX_FMT_GRAY8,
         .v4l2_fmt = V4L2_PIX_FMT_GREY,