diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-08-31 04:35:06 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-08-31 04:35:06 +0200 |
commit | e7b43377774a94b4d11d7bbff644b110cdb4678b (patch) | |
tree | a4edcfc3661ed5962f53c05ae26b7531574bad1d | |
parent | 6eac554659b6b6e9b348ec26c44b5105a3f4b11c (diff) | |
download | ffmpeg-e7b43377774a94b4d11d7bbff644b110cdb4678b.tar.gz |
v4l2: fix compile on systems that lack V4L2_PIX_FMT_CPIA1
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavdevice/v4l2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c index 4b43688089..bab891ab57 100644 --- a/libavdevice/v4l2.c +++ b/libavdevice/v4l2.c @@ -150,7 +150,9 @@ static struct fmt_map fmt_conversion_table[] = { { PIX_FMT_NV12, AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_NV12 }, { PIX_FMT_NONE, AV_CODEC_ID_MJPEG, V4L2_PIX_FMT_MJPEG }, { PIX_FMT_NONE, AV_CODEC_ID_MJPEG, V4L2_PIX_FMT_JPEG }, +#ifdef V4L2_PIX_FMT_CPIA1 { PIX_FMT_NONE, AV_CODEC_ID_CPIA, V4L2_PIX_FMT_CPIA1 }, +#endif }; static int device_open(AVFormatContext *ctx) |