tiff: support reading gray+alpha at 16 bits

This commit is contained in:
Vittorio Giovara 2014-07-20 22:54:35 +01:00
parent e64f0bf2d2
commit bcc5f69b33

View 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;