# HG changeset patch # User kostya # Date 1163417922 0 # Node ID 42e87000070270d1ffe0b5078a4b6733897a2460 # Parent c9867abab7e6708757c481069a8452349cf1c259 Give error about planar RGB diff -r c9867abab7e6 -r 42e870000702 tiff.c --- 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; }