On 09/18/2012 08:53 PM, Alex Converse wrote: > Tested with the GraphicsMagick TIFF archive and Libav generated files. > --- > libavcodec/tiff.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c > index f60c65e..2a48050 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;
LGTM -Justin _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
