lavd/v4l2-common: Add an entry for Z16.
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Thu, 21 Mar 2019 00:24:42 +0000 (01:24 +0100)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Fri, 22 Mar 2019 11:30:47 +0000 (12:30 +0100)
libavdevice/v4l2-common.c

index 2d6bfac..b5b4448 100644 (file)
@@ -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    },