[FFmpeg-cvslog] tiffdec: PIX_FMT_GRAY16LE support

Paul B Mahol git at videolan.org
Fri Jul 6 03:12:55 CEST 2012


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Jul  6 01:09:19 2012 +0000| [8f239412d8a6a2c0c8526edf9b4fa306a74a030d] | committer: Paul B Mahol

tiffdec: PIX_FMT_GRAY16LE support

Signed-off-by: Paul B Mahol <onemda at gmail.com>

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

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

diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index a30e1a9..103c44f 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;



More information about the ffmpeg-cvslog mailing list