OSDN Git Service

tiff: support reading gray+alpha at 8 bits
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Sun, 20 Jul 2014 06:34:19 +0000 (02:34 -0400)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Sun, 20 Jul 2014 22:32:13 +0000 (23:32 +0100)
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
libavcodec/tiff.c

index 6c72dc8..69d55c6 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 162:
+        s->avctx->pix_fmt = AV_PIX_FMT_GRAY8A;
+        break;
     case 324:
         s->avctx->pix_fmt = AV_PIX_FMT_RGBA;
         break;