]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Fri, 20 Mar 2015 21:37:53 +0000 (21:37 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Fri, 20 Mar 2015 21:37:53 +0000 (21:37 +0000)
MagickCore/layer.c

index 1df41a5396bbfeece1915e81b0bbefa5ea1da9b3..451292c72d5865befc757496d8cbbc4d34d8d2c5 100644 (file)
@@ -832,6 +832,16 @@ MagickExport Image *CompareImagesLayers(const Image *image,
   next=GetNextImageInList(next);
   for ( ; next != (const Image *) NULL; next=GetNextImageInList(next))
   {
+    if ((bounds[i].x == -1) && (bounds[i].y == -1) &&
+        (bounds[i].width == 1) && (bounds[i].height == 1))
+      {
+        /*
+          An empty frame is returned from CompareImageBounds(), which means the
+          current frame is identical to the previous frame.
+        */
+        i++;
+        continue;
+      }
     image_a=CloneImage(next,0,0,MagickTrue,exception);
     if (image_a == (Image *) NULL)
       break;