lavc/ffv1enc: Support pix_fmt GRAY10.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Mon, 14 Nov 2016 23:52:30 +0000 (00:52 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Thu, 17 Nov 2016 11:47:39 +0000 (12:47 +0100)
libavcodec/ffv1enc.c

index 68d311d..c56623b 100644 (file)
@@ -573,6 +573,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
     case AV_PIX_FMT_YUVA420P9:
         if (!avctx->bits_per_raw_sample)
             s->bits_per_raw_sample = 9;
+    case AV_PIX_FMT_GRAY10:
     case AV_PIX_FMT_YUV444P10:
     case AV_PIX_FMT_YUV420P10:
     case AV_PIX_FMT_YUV422P10:
@@ -1298,6 +1299,7 @@ AVCodec ff_ffv1_encoder = {
         AV_PIX_FMT_GRAY16,    AV_PIX_FMT_GRAY8,     AV_PIX_FMT_GBRP9,     AV_PIX_FMT_GBRP10,
         AV_PIX_FMT_GBRP12,    AV_PIX_FMT_GBRP14,
         AV_PIX_FMT_YA8,
+        AV_PIX_FMT_GRAY10,
         AV_PIX_FMT_GBRP16, AV_PIX_FMT_RGB48,
         AV_PIX_FMT_NONE