diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-07-20 02:34:19 -0400 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-07-20 23:32:13 +0100 |
commit | b31d76e45fc3c6529dd7109e721676f3ec376d00 (patch) | |
tree | d13659208e8e5b8f40f9c953a190582371208adc | |
parent | 4de8b60684ce13dff3e3d372dae4f49b9e53f755 (diff) | |
download | ffmpeg-b31d76e45fc3c6529dd7109e721676f3ec376d00.tar.gz |
tiff: support reading gray+alpha at 8 bits
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
-rw-r--r-- | libavcodec/tiff.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c index 6c72dc8293..69d55c6208 100644 --- a/libavcodec/tiff.c +++ b/libavcodec/tiff.c @@ -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; |