Commit 60cbd6ad authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos Committed by Vittorio Giovara

tiff: support reading gray+alpha at 8 bits

Signed-off-by: 's avatarVittorio Giovara <vittorio.giovara@gmail.com>
parent bcc5f69b
...@@ -262,6 +262,9 @@ static int init_image(TiffContext *s, AVFrame *frame) ...@@ -262,6 +262,9 @@ static int init_image(TiffContext *s, AVFrame *frame)
case 161: case 161:
s->avctx->pix_fmt = s->le ? AV_PIX_FMT_GRAY16LE : AV_PIX_FMT_GRAY16BE; s->avctx->pix_fmt = s->le ? AV_PIX_FMT_GRAY16LE : AV_PIX_FMT_GRAY16BE;
break; break;
case 162:
s->avctx->pix_fmt = AV_PIX_FMT_YA8;
break;
case 322: case 322:
s->avctx->pix_fmt = s->le ? AV_PIX_FMT_YA16LE : AV_PIX_FMT_YA16BE; s->avctx->pix_fmt = s->le ? AV_PIX_FMT_YA16LE : AV_PIX_FMT_YA16BE;
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment