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

tiff: support reading gray+alpha at 8 bits

Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com>

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

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

diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index 6c72dc8..69d55c6 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_GRAY8A;
+        break;
     case 324:
         s->avctx->pix_fmt = AV_PIX_FMT_RGBA;
         break;

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to