diff 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
line wrap: on
line diff
--- 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");