comparison tiff.c @ 4405:48952197d91f libavcodec

Some TIFFs do not set rows per strip for single strip.
author kostya
date Thu, 25 Jan 2007 06:44:53 +0000
parents 05e932ddaaa9
children 0860efc2f02b
comparison
equal deleted inserted replaced
4404:7914aef8c31a 4405:48952197d91f
330 s->stripdata = NULL; 330 s->stripdata = NULL;
331 s->stripoff = value; 331 s->stripoff = value;
332 }else 332 }else
333 s->stripdata = start + off; 333 s->stripdata = start + off;
334 s->strips = count; 334 s->strips = count;
335 if(s->strips == 1) s->rps = s->height;
335 s->sot = type; 336 s->sot = type;
336 if(s->stripdata > end_buf){ 337 if(s->stripdata > end_buf){
337 av_log(s->avctx, AV_LOG_ERROR, "Tag referencing position outside the image\n"); 338 av_log(s->avctx, AV_LOG_ERROR, "Tag referencing position outside the image\n");
338 return -1; 339 return -1;
339 } 340 }