From 89b4ec5c33cd818a809fea7f7658ea5db0fc2e29 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Mon, 22 Dec 2008 06:43:14 +0000 Subject: [PATCH] Add monochrome TIFF support Originally committed as revision 16266 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/tiff.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c index 6b2c2ada5d..d7738fce75 100644 --- a/libavcodec/tiff.c +++ b/libavcodec/tiff.c @@ -220,6 +220,9 @@ static int tiff_decode_tag(TiffContext *s, const uint8_t *start, const uint8_t * } } switch(s->bpp){ + case 1: + s->avctx->pix_fmt = PIX_FMT_MONOBLACK; + break; case 8: s->avctx->pix_fmt = PIX_FMT_PAL8; break;