From: Cristy Date: Wed, 19 Jun 2019 01:01:16 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.8-50~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b03e91a9c6b3a2dd13560d97209af3f2eb076c19;p=imagemagick ... --- diff --git a/coders/tiff.c b/coders/tiff.c index c476e90dd..f1f41fb82 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -3090,12 +3090,10 @@ static MagickBooleanType GetTIFFInfo(const ImageInfo *image_info, uint32 rows_per_strip; + rows_per_strip=0; /* use default */ option=GetImageOption(image_info,"tiff:rows-per-strip"); if (option != (const char *) NULL) rows_per_strip=(size_t) strtol(option,(char **) NULL,10); - else - if (TIFFGetField(tiff,TIFFTAG_IMAGELENGTH,&rows_per_strip) == 0) - rows_per_strip=0; /* use default */ rows_per_strip=TIFFDefaultStripSize(tiff,rows_per_strip); (void) TIFFSetField(tiff,TIFFTAG_ROWSPERSTRIP,rows_per_strip); return(MagickTrue);