Commit a7dae436 authored by kostya's avatar kostya

Add monochrome TIFF support

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16266 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 38233522
...@@ -220,6 +220,9 @@ static int tiff_decode_tag(TiffContext *s, const uint8_t *start, const uint8_t * ...@@ -220,6 +220,9 @@ static int tiff_decode_tag(TiffContext *s, const uint8_t *start, const uint8_t *
} }
} }
switch(s->bpp){ switch(s->bpp){
case 1:
s->avctx->pix_fmt = PIX_FMT_MONOBLACK;
break;
case 8: case 8:
s->avctx->pix_fmt = PIX_FMT_PAL8; s->avctx->pix_fmt = PIX_FMT_PAL8;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment