projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b39cf84
)
Give error about planar RGB
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Mon, 13 Nov 2006 11:38:42 +0000
(11:38 +0000)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Mon, 13 Nov 2006 11:38:42 +0000
(11:38 +0000)
Originally committed as revision 7011 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/tiff.c
patch
|
blob
|
history
diff --git
a/libavcodec/tiff.c
b/libavcodec/tiff.c
index 222337d605421e8de44d0a3c8a2e6e927530a4f5..62e2a390b13a25ecb2247c7da949bfa9151cf9ec 100644
(file)
--- a/
libavcodec/tiff.c
+++ b/
libavcodec/tiff.c
@@
-35,6
+35,7
@@
enum TiffTags{
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
@@
static int tiff_decode_tag(TiffContext *s, uint8_t *start, uint8_t *buf, uint8_t
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;
}