projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4386ed6
)
Add monochrome TIFF support
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Mon, 22 Dec 2008 06:43:14 +0000
(06:43 +0000)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Mon, 22 Dec 2008 06:43:14 +0000
(06:43 +0000)
Originally committed as revision 16266 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/tiff.c
patch
|
blob
|
history
diff --git
a/libavcodec/tiff.c
b/libavcodec/tiff.c
index
6b2c2ad
..
d7738fc
100644
(file)
--- 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;