[FFmpeg-cvslog] tiff: support reading gray+alpha at 8 bits

Carl Eugen Hoyos git at videolan.org
Mon Aug 4 22:57:45 CEST 2014


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sun Jul 20 02:34:19 2014 -0400| [60cbd6ad84de0931314030b81df87b69d6196587] | committer: Vittorio Giovara

tiff: support reading gray+alpha at 8 bits

Signed-off-by: Vittorio Giovara <vittorio.giovara at gmail.com>

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

 libavcodec/tiff.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index 7341b3f..2aff45a 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -262,6 +262,9 @@ static int init_image(TiffContext *s, AVFrame *frame)
     case 161:
         s->avctx->pix_fmt = s->le ? AV_PIX_FMT_GRAY16LE : AV_PIX_FMT_GRAY16BE;
         break;
+    case 162:
+        s->avctx->pix_fmt = AV_PIX_FMT_YA8;
+        break;
     case 322:
         s->avctx->pix_fmt = s->le ? AV_PIX_FMT_YA16LE : AV_PIX_FMT_YA16BE;
         break;



More information about the ffmpeg-cvslog mailing list