tiff: support reading gray+alpha at 16 bits
authorVittorio Giovara <vittorio.giovara@gmail.com>
Sun, 20 Jul 2014 21:54:35 +0000 (22:54 +0100)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Mon, 4 Aug 2014 11:57:38 +0000 (12:57 +0100)
libavcodec/tiff.c

index 6afc2cb..7341b3f 100644 (file)
@@ -262,6 +262,9 @@ static int init_image(TiffContext *s, AVFrame *frame)
     case 161:
         s->avctx->pix_fmt = s->le ? AV_PIX_FMT_GRAY16LE : AV_PIX_FMT_GRAY16BE;
         break;
+    case 322:
+        s->avctx->pix_fmt = s->le ? AV_PIX_FMT_YA16LE : AV_PIX_FMT_YA16BE;
+        break;
     case 324:
         s->avctx->pix_fmt = AV_PIX_FMT_RGBA;
         break;