]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sun, 11 Mar 2018 01:17:44 +0000 (20:17 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sun, 11 Mar 2018 01:17:44 +0000 (20:17 -0500)
coders/dpx.c

index 0944ff7dfb29110f365957aea8ac9b3e6eb81b6b..4a925f84912ece76fe11ca8a4fae6c79def59c7e 100644 (file)
@@ -1135,7 +1135,9 @@ static Image *ReadDPXImage(const ImageInfo *image_info,ExceptionInfo *exception)
   status=SetImageExtent(image,image->columns,image->rows,exception);
   if (status == MagickFalse)
     return(DestroyImageList(image));
-  (void) SetImageBackgroundColor(image,exception);
+  status=ResetImagePixels(image,exception);
+  if (status == MagickFalse)
+    return(DestroyImageList(image));
   for (n=0; n < (ssize_t) dpx.image.number_elements; n++)
   {
     /*