diff options
author | Alex Converse <alex.converse@gmail.com> | 2012-09-18 17:46:48 -0700 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2012-09-19 11:05:36 -0700 |
commit | df6c3f9fb3b983e790f6d6d46c5fd26d757d9093 (patch) | |
tree | 1320cca055b2f59007b4dc76530669b72fea567b | |
parent | 298ed797e1f9b71d154d34d19177a2c8bef587e1 (diff) | |
download | ffmpeg-df6c3f9fb3b983e790f6d6d46c5fd26d757d9093.tar.gz |
tiffdec: Add support for GRAY16LE.
Tested with the GraphicsMagick TIFF archive and Libav generated files.
-rw-r--r-- | libavcodec/tiff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c index f60c65ec7d..2a48050678 100644 --- a/libavcodec/tiff.c +++ b/libavcodec/tiff.c @@ -259,7 +259,7 @@ static int init_image(TiffContext *s) s->avctx->pix_fmt = PIX_FMT_RGB24; break; case 161: - s->avctx->pix_fmt = PIX_FMT_GRAY16BE; + s->avctx->pix_fmt = s->le ? PIX_FMT_GRAY16LE : PIX_FMT_GRAY16BE; break; case 324: s->avctx->pix_fmt = PIX_FMT_RGBA; |