[FFmpeg-devel] [PATCH]Support decoding gray8a tiff images

Carl Eugen Hoyos cehoyos at ag.or.at
Sun Jan 22 02:19:39 CET 2012


Hi!

Supported by ImageMagick and gimp.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index 6c440ad..a0424b9 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -296,6 +296,9 @@ static int init_image(TiffContext *s)
     case 161:
         s->avctx->pix_fmt = PIX_FMT_GRAY16BE;
         break;
+    case 162:
+        s->avctx->pix_fmt = PIX_FMT_GRAY8A;
+        break;
     case 324:
         s->avctx->pix_fmt = PIX_FMT_RGBA;
         break;


More information about the ffmpeg-devel mailing list