summaryrefslogtreecommitdiff
path: root/libavcodec/tiff.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2008-12-22 06:43:14 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2008-12-22 06:43:14 +0000
commit89b4ec5c33cd818a809fea7f7658ea5db0fc2e29 (patch)
tree0659a1624bf7f39d7633df8d3305dcf8d53e9dbd /libavcodec/tiff.c
parent4386ed692200a230e129c7df1d259f4390464935 (diff)
Add monochrome TIFF support
Originally committed as revision 16266 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/tiff.c')
-rw-r--r--libavcodec/tiff.c3
1 files changed, 3 insertions, 0 deletions
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;