# HG changeset patch # User kostya # Date 1169707493 0 # Node ID 48952197d91f0b568e7b36f0555a35d36b5b744c # Parent 7914aef8c31a4255a3d077c95cf01d2a52b0565d Some TIFFs do not set rows per strip for single strip. diff -r 7914aef8c31a -r 48952197d91f tiff.c --- a/tiff.c Thu Jan 25 00:34:38 2007 +0000 +++ b/tiff.c Thu Jan 25 06:44:53 2007 +0000 @@ -332,6 +332,7 @@ }else s->stripdata = start + off; s->strips = count; + if(s->strips == 1) s->rps = s->height; s->sot = type; if(s->stripdata > end_buf){ av_log(s->avctx, AV_LOG_ERROR, "Tag referencing position outside the image\n");