tiffdec: Add support for GRAY16LE.

Tested with the GraphicsMagick TIFF archive and Libav generated files.
This commit is contained in:
Alex Converse 2012-09-18 17:46:48 -07:00
parent 298ed797e1
commit df6c3f9fb3

View File

@ -259,7 +259,7 @@ static int init_image(TiffContext *s)
s->avctx->pix_fmt = PIX_FMT_RGB24; s->avctx->pix_fmt = PIX_FMT_RGB24;
break; break;
case 161: case 161:
s->avctx->pix_fmt = PIX_FMT_GRAY16BE; s->avctx->pix_fmt = s->le ? PIX_FMT_GRAY16LE : PIX_FMT_GRAY16BE;
break; break;
case 324: case 324:
s->avctx->pix_fmt = PIX_FMT_RGBA; s->avctx->pix_fmt = PIX_FMT_RGBA;