diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2008-12-22 06:43:14 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2008-12-22 06:43:14 +0000 |
commit | 89b4ec5c33cd818a809fea7f7658ea5db0fc2e29 (patch) | |
tree | 0659a1624bf7f39d7633df8d3305dcf8d53e9dbd | |
parent | 4386ed692200a230e129c7df1d259f4390464935 (diff) | |
download | ffmpeg-89b4ec5c33cd818a809fea7f7658ea5db0fc2e29.tar.gz |
Add monochrome TIFF support
Originally committed as revision 16266 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/tiff.c | 3 |
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; |