Commit af4481b0 authored by kostya's avatar kostya

Give error about planar RGB

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7011 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4a6c439f
...@@ -35,6 +35,7 @@ enum TiffTags{ ...@@ -35,6 +35,7 @@ enum TiffTags{
TIFF_STRIP_OFFS = 0x111, TIFF_STRIP_OFFS = 0x111,
TIFF_ROWSPERSTRIP = 0x116, TIFF_ROWSPERSTRIP = 0x116,
TIFF_STRIP_SIZE, TIFF_STRIP_SIZE,
TIFF_PLANAR = 0x11C,
TIFF_XPOS = 0x11E, TIFF_XPOS = 0x11E,
TIFF_YPOS = 0x11F, TIFF_YPOS = 0x11F,
TIFF_PREDICTOR = 0x13D, TIFF_PREDICTOR = 0x13D,
...@@ -415,6 +416,13 @@ static int tiff_decode_tag(TiffContext *s, uint8_t *start, uint8_t *buf, uint8_t ...@@ -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; j |= tget(&bp, type, s->le) >> off;
pal[i] = j; 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; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment