summaryrefslogtreecommitdiff
path: root/libavcodec/tiff.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-07-06 01:09:19 +0000
committerPaul B Mahol <onemda@gmail.com>2012-07-06 01:11:34 +0000
commit8f239412d8a6a2c0c8526edf9b4fa306a74a030d (patch)
tree60046547f60bc2071a67ef7138dc0240794cbcbd /libavcodec/tiff.c
parent8293a21a9c80a0cbb753ab44c829c1efff2083e5 (diff)
downloadffmpeg-8f239412d8a6a2c0c8526edf9b4fa306a74a030d.tar.gz
tiffdec: PIX_FMT_GRAY16LE support
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/tiff.c')
-rw-r--r--libavcodec/tiff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index a30e1a948a..103c44fdfb 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -323,7 +323,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 162:
s->avctx->pix_fmt = PIX_FMT_GRAY8A;