[FFmpeg-devel] [RFC] Y41P for v4l2

Paul B Mahol onemda at gmail.com
Mon Jan 2 15:33:38 CET 2012


Add support for V4L2_PIX_FMT_Y41P

Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
 libavdevice/v4l2.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index 15356fe..ca14dde 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -122,6 +122,7 @@ static struct fmt_map fmt_conversion_table[] = {
     { PIX_FMT_NV12,    CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_NV12    },
     { PIX_FMT_NONE,    CODEC_ID_MJPEG,    V4L2_PIX_FMT_MJPEG   },
     { PIX_FMT_NONE,    CODEC_ID_MJPEG,    V4L2_PIX_FMT_JPEG    },
+    { PIX_FMT_NONE,    CODEC_ID_Y41P,     V4L2_PIX_FMT_Y41P    },
 };

 static int device_open(AVFormatContext *ctx, uint32_t *capabilities)
-- 
1.7.7


Please test.


More information about the ffmpeg-devel mailing list