From 8e082df0f436393876d3eec6d6de24263ecaa233 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Wed, 12 Sep 2012 13:33:57 +0200 Subject: [PATCH] Support decoding of monochrome tiff images without bpp tag. --- libavcodec/tiff.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c index 078c29a541..579bd0d5f7 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;