changeset 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 7914aef8c31a
children 548b2c0a2a51
files tiff.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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");