]> granicus.if.org Git - imagemagick/commitdiff
Added early exit because only direct class images are supported.
authorDirk Lemstra <dirk@lemstra.org>
Sun, 11 Nov 2018 12:11:17 +0000 (13:11 +0100)
committerDirk Lemstra <dirk@lemstra.org>
Sun, 11 Nov 2018 12:11:17 +0000 (13:11 +0100)
MagickCore/accelerate.c

index 079cb652c66bea21bd63fb343f980a18dd5ad8f3..da2c30c8ee769e158e30b1e0d18f9f0d53306823 100644 (file)
@@ -111,6 +111,10 @@ static const ResizeWeightingFunctionType supportedResizeWeighting[] =
 */
 static MagickBooleanType checkAccelerateCondition(const Image* image)
 {
+  /* only direct class images are supported */
+  if (image->storage_class != DirectClass)
+    return(MagickFalse);
+
   /* check if the image's colorspace is supported */
   if (image->colorspace != RGBColorspace &&
       image->colorspace != sRGBColorspace &&