Support decoding of monochrome tiff images without bpp tag.

This commit is contained in:
Carl Eugen Hoyos 2012-09-12 13:33:57 +02:00
parent 7680d99b43
commit 8e082df0f4

View 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;