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-08-04 12:57:39 +0100 |
commit | 60cbd6ad84de0931314030b81df87b69d6196587 (patch) | |
tree | 7782d47464c0df970fecb6ab2856f41ec460fd72 /libavcodec | |
parent | bcc5f69b33e27b5e11aaea8304ee02f8d895cdab (diff) | |
download | ffmpeg-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.c | 3 |
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; |