[FFmpeg-cvslog] Fix pix_fmt mapping for v4l2 rgb5x5.

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


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Wed Feb  1 17:58:42 2012 +0100| [93a3ba9bcdac4b3c74e5c75f71a39821157587ab] | committer: Carl Eugen Hoyos

Fix pix_fmt mapping for v4l2 rgb5x5.

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

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

diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index 2780a44..bd11baa 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -113,8 +113,8 @@ static struct fmt_map fmt_conversion_table[] = {
     { PIX_FMT_UYVY422, CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_UYVY    },
     { PIX_FMT_YUV411P, CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_YUV411P },
     { PIX_FMT_YUV410P, CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_YUV410  },
-    { PIX_FMT_RGB555,  CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_RGB555  },
-    { PIX_FMT_RGB565,  CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_RGB565  },
+    { PIX_FMT_RGB555LE,CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_RGB555  },
+    { 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   },



More information about the ffmpeg-cvslog mailing list