changeset 4192:42e870000702 libavcodec

Give error about planar RGB
author kostya
date Mon, 13 Nov 2006 11:38:42 +0000
parents c9867abab7e6
children cdefe220b007
files tiff.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tiff.c	Mon Nov 13 11:36:22 2006 +0000
+++ b/tiff.c	Mon Nov 13 11:38:42 2006 +0000
@@ -35,6 +35,7 @@
     TIFF_STRIP_OFFS = 0x111,
     TIFF_ROWSPERSTRIP = 0x116,
     TIFF_STRIP_SIZE,
+    TIFF_PLANAR = 0x11C,
     TIFF_XPOS = 0x11E,
     TIFF_YPOS = 0x11F,
     TIFF_PREDICTOR = 0x13D,
@@ -415,6 +416,13 @@
             j |= tget(&bp, type, s->le) >> off;
             pal[i] = j;
         }
+        break;
+    case TIFF_PLANAR:
+        if(value == 2){
+            av_log(s->avctx, AV_LOG_ERROR, "Planar format is not supported\n");
+            return -1;
+        }
+        break;
     }
     return 0;
 }