]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Wed, 6 Jul 2016 11:58:52 +0000 (07:58 -0400)
committerCristy <urban-warrior@imagemagick.org>
Wed, 6 Jul 2016 11:59:13 +0000 (07:59 -0400)
coders/tiff.c

index fa589d94f6eecaabc0c66fa62bfb0d0d0563716b..8acce45d04eaa4c9614a56bd6a1e1d24999e36d4 100644 (file)
@@ -1299,9 +1299,6 @@ RestoreMSCWarning
     image->columns=(size_t) width;
     image->rows=(size_t) height;
     image->depth=(size_t) bits_per_sample;
-    status=SetImageExtent(image,image->columns,image->rows,exception);
-    if (status == MagickFalse)
-      return(DestroyImageList(image));
     if (image->debug != MagickFalse)
       (void) LogMagickEvent(CoderEvent,GetMagickModule(),"Image depth: %.20g",
         (double) image->depth);
@@ -1562,6 +1559,9 @@ RestoreMSCWarning
             }
         goto next_tiff_frame;
       }
+    status=SetImageExtent(image,image->columns,image->rows,exception);
+    if (status == MagickFalse)
+      return(DestroyImageList(image));
     method=ReadGenericMethod;
     if (TIFFGetField(tiff,TIFFTAG_ROWSPERSTRIP,&rows_per_strip) == 1)
       {