aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
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-08-04 12:57:39 +0100
commit60cbd6ad84de0931314030b81df87b69d6196587 (patch)
tree7782d47464c0df970fecb6ab2856f41ec460fd72 /libavcodec
parentbcc5f69b33e27b5e11aaea8304ee02f8d895cdab (diff)
downloadffmpeg-60cbd6ad84de0931314030b81df87b69d6196587.tar.gz
tiff: support reading gray+alpha at 8 bits
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/tiff.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index 7341b3fb33..2aff45ad7d 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_YA8;
+ break;
case 322:
s->avctx->pix_fmt = s->le ? AV_PIX_FMT_YA16LE : AV_PIX_FMT_YA16BE;
break;