]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Wed, 19 Jun 2019 01:01:16 +0000 (21:01 -0400)
committerCristy <urban-warrior@imagemagick.org>
Wed, 19 Jun 2019 01:01:16 +0000 (21:01 -0400)
coders/tiff.c

index c476e90dd47fbc6fd438a239bd1edcf17bf0f914..f1f41fb829d819201cacbcbe26d481b664f535a4 100644 (file)
@@ -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);