summaryrefslogtreecommitdiff
path: root/libavcodec/tiff.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2014-07-20 02:34:19 -0400
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-07-20 23:32:13 +0100
commitb31d76e45fc3c6529dd7109e721676f3ec376d00 (patch)
treed13659208e8e5b8f40f9c953a190582371208adc /libavcodec/tiff.c
parent4de8b60684ce13dff3e3d372dae4f49b9e53f755 (diff)
tiff: support reading gray+alpha at 8 bits
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Diffstat (limited to 'libavcodec/tiff.c')
-rw-r--r--libavcodec/tiff.c3
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;