[FFmpeg-cvslog] tiffdec: Add support for GRAY16LE.

Alex Converse git at videolan.org
Thu Sep 20 04:44:42 CEST 2012


ffmpeg | branch: master | Alex Converse <alex.converse at gmail.com> | Tue Sep 18 17:46:48 2012 -0700| [df6c3f9fb3b983e790f6d6d46c5fd26d757d9093] | committer: Alex Converse

tiffdec: Add support for GRAY16LE.

Tested with the GraphicsMagick TIFF archive and Libav generated files.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=df6c3f9fb3b983e790f6d6d46c5fd26d757d9093
---

 libavcodec/tiff.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;



More information about the ffmpeg-cvslog mailing list