Originally committed as revision 7011 to svn://svn.ffmpeg.org/ffmpeg/trunk
Kostya Shishkov authored on 2006/11/13 20:38:42... | ... |
@@ -35,6 +35,7 @@ enum TiffTags{ |
35 | 35 |
TIFF_STRIP_OFFS = 0x111, |
36 | 36 |
TIFF_ROWSPERSTRIP = 0x116, |
37 | 37 |
TIFF_STRIP_SIZE, |
38 |
+ TIFF_PLANAR = 0x11C, |
|
38 | 39 |
TIFF_XPOS = 0x11E, |
39 | 40 |
TIFF_YPOS = 0x11F, |
40 | 41 |
TIFF_PREDICTOR = 0x13D, |
... | ... |
@@ -415,6 +416,13 @@ static int tiff_decode_tag(TiffContext *s, uint8_t *start, uint8_t *buf, uint8_t |
415 | 415 |
j |= tget(&bp, type, s->le) >> off; |
416 | 416 |
pal[i] = j; |
417 | 417 |
} |
418 |
+ break; |
|
419 |
+ case TIFF_PLANAR: |
|
420 |
+ if(value == 2){ |
|
421 |
+ av_log(s->avctx, AV_LOG_ERROR, "Planar format is not supported\n"); |
|
422 |
+ return -1; |
|
423 |
+ } |
|
424 |
+ break; |
|
418 | 425 |
} |
419 | 426 |
return 0; |
420 | 427 |
} |