[FFmpeg-cvslog] Fix v4l pix_fmt mapping for rgb32: There is no transparency information.

Carl Eugen Hoyos git at videolan.org
Wed Feb 1 18:05:37 CET 2012


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Wed Feb  1 18:00:24 2012 +0100| [46320667136bbeffdb1285fe1dea69c300d66abe] | committer: Carl Eugen Hoyos

Fix v4l pix_fmt mapping for rgb32: There is no transparency information.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=46320667136bbeffdb1285fe1dea69c300d66abe
---

 libavdevice/v4l2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index bd11baa..ce89121 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -117,7 +117,7 @@ static struct fmt_map fmt_conversion_table[] = {
     { PIX_FMT_RGB565LE,CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_RGB565  },
     { PIX_FMT_BGR24,   CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_BGR24   },
     { PIX_FMT_RGB24,   CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_RGB24   },
-    { PIX_FMT_BGRA,    CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_BGR32   },
+    { PIX_FMT_BGR0,    CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_BGR32   },
     { PIX_FMT_GRAY8,   CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_GREY    },
     { PIX_FMT_NV12,    CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_NV12    },
     { PIX_FMT_NONE,    CODEC_ID_MJPEG,    V4L2_PIX_FMT_MJPEG   },



More information about the ffmpeg-cvslog mailing list