aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2019-03-21 01:24:42 +0100
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2019-03-22 12:30:47 +0100
commite704070f61e830064ea5c13e9562d7c455a3729d (patch)
tree399f56701788abdd00f846f02f80cd2b1f65d62f
parentb073fb9eeae8f021a4e18886ccf73cda9f67b00c (diff)
downloadffmpeg-e704070f61e830064ea5c13e9562d7c455a3729d.tar.gz
lavd/v4l2-common: Add an entry for Z16.
-rw-r--r--libavdevice/v4l2-common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavdevice/v4l2-common.c b/libavdevice/v4l2-common.c
index 2d6bfac8ca..b5b4448a31 100644
--- a/libavdevice/v4l2-common.c
+++ b/libavdevice/v4l2-common.c
@@ -46,6 +46,9 @@ const struct fmt_map ff_fmt_conversion_table[] = {
#ifdef V4L2_PIX_FMT_Y16
{ AV_PIX_FMT_GRAY16LE,AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_Y16 },
#endif
+#ifdef V4L2_PIX_FMT_Z16
+ { AV_PIX_FMT_GRAY16LE,AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_Z16 },
+#endif
{ AV_PIX_FMT_NV12, AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_NV12 },
{ AV_PIX_FMT_NONE, AV_CODEC_ID_MJPEG, V4L2_PIX_FMT_MJPEG },
{ AV_PIX_FMT_NONE, AV_CODEC_ID_MJPEG, V4L2_PIX_FMT_JPEG },