提交 b31d76e4 编写于 作者: C Carl Eugen Hoyos 提交者: Vittorio Giovara

tiff: support reading gray+alpha at 8 bits

Signed-off-by: NVittorio Giovara <vittorio.giovara@gmail.com>
上级 4de8b606
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册