From 8f239412d8a6a2c0c8526edf9b4fa306a74a030d Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Fri, 6 Jul 2012 01:09:19 +0000 Subject: [PATCH] tiffdec: PIX_FMT_GRAY16LE support Signed-off-by: Paul B Mahol --- libavcodec/tiff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;