]> git.sesse.net Git - ffmpeg/commitdiff
Some TIFFs do not set rows per strip for single strip.
authorKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 25 Jan 2007 06:44:53 +0000 (06:44 +0000)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 25 Jan 2007 06:44:53 +0000 (06:44 +0000)
Originally committed as revision 7701 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/tiff.c

index 199fbad70b6b3166d82d84c2299901e19eac0618..344b5a3116237c2a139b769e67462f0f74a3adbc 100644 (file)
@@ -332,6 +332,7 @@ static int tiff_decode_tag(TiffContext *s, uint8_t *start, uint8_t *buf, uint8_t
         }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");