Commit 257c8a2f authored by kostya's avatar kostya

Some TIFFs do not set rows per strip for single strip.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7701 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 61d546c0
...@@ -332,6 +332,7 @@ static int tiff_decode_tag(TiffContext *s, uint8_t *start, uint8_t *buf, uint8_t ...@@ -332,6 +332,7 @@ static int tiff_decode_tag(TiffContext *s, uint8_t *start, uint8_t *buf, uint8_t
}else }else
s->stripdata = start + off; s->stripdata = start + off;
s->strips = count; s->strips = count;
if(s->strips == 1) s->rps = s->height;
s->sot = type; s->sot = type;
if(s->stripdata > end_buf){ if(s->stripdata > end_buf){
av_log(s->avctx, AV_LOG_ERROR, "Tag referencing position outside the image\n"); av_log(s->avctx, AV_LOG_ERROR, "Tag referencing position outside the image\n");
......
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