[FFmpeg-cvslog] Support decoding of monochrome tiff images without bpp tag.

Carl Eugen Hoyos git at videolan.org
Wed Sep 12 13:34:22 CEST 2012


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Wed Sep 12 13:33:57 2012 +0200| [8e082df0f436393876d3eec6d6de24263ecaa233] | committer: Carl Eugen Hoyos

Support decoding of monochrome tiff images without bpp tag.

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

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

diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index 078c29a..579bd0d 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -1008,6 +1008,8 @@ static int decode_frame(AVCodecContext *avctx,
         return -1;
     }
     s->le = le;
+    // TIFF_BPP is not a required tag and defaults to 1
+    s->bppcount = s->bpp = 1;
     s->invert = 0;
     s->compr = TIFF_RAW;
     s->fill_order = 0;



More information about the ffmpeg-cvslog mailing list