Some TIFFs do not set rows per strip for single strip.
Originally committed as revision 7701 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
634444f4ce
commit
615259a33e
@ -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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user