Support decoding of monochrome tiff images without bpp tag.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Wed, 12 Sep 2012 11:33:57 +0000 (13:33 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Wed, 12 Sep 2012 11:33:57 +0000 (13:33 +0200)
libavcodec/tiff.c

index 078c29a..579bd0d 100644 (file)
@@ -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;