changeset 8427:2dfb0cc864b6 libavcodec

Add monochrome TIFF support
author kostya
date Mon, 22 Dec 2008 06:43:14 +0000
parents 898722eb4fd2
children 8bf9f50ed64f
files tiff.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tiff.c	Mon Dec 22 06:39:31 2008 +0000
+++ b/tiff.c	Mon Dec 22 06:43:14 2008 +0000
@@ -220,6 +220,9 @@
             }
         }
         switch(s->bpp){
+        case 1:
+            s->avctx->pix_fmt = PIX_FMT_MONOBLACK;
+            break;
         case 8:
             s->avctx->pix_fmt = PIX_FMT_PAL8;
             break;