From: Cristy Date: Sun, 8 May 2016 00:08:57 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/191 X-Git-Tag: 7.0.1-3~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a4877a4a4597028a1349976324c8fae7911086d;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/191 --- diff --git a/coders/jpeg.c b/coders/jpeg.c index 6a848cbd7..73f6e49d8 100644 --- a/coders/jpeg.c +++ b/coders/jpeg.c @@ -1261,8 +1261,7 @@ static Image *ReadJPEGImage(const ImageInfo *image_info, if (AcquireImageColormap(image,StringToUnsignedLong(option),exception) == MagickFalse) ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); - if ((jpeg_info.output_components == 1) && - (jpeg_info.quantize_colors == MagickFalse)) + if ((jpeg_info.output_components == 1) && (jpeg_info.quantize_colors == 0)) { size_t colors; @@ -1329,7 +1328,7 @@ static Image *ReadJPEGImage(const ImageInfo *image_info, return(GetFirstImageInList(image)); return(DestroyImage(image)); } - if (jpeg_info.quantize_colors != MagickFalse) + if (jpeg_info.quantize_colors != 0) { image->colors=(size_t) jpeg_info.actual_number_of_colors; if (jpeg_info.out_color_space == JCS_GRAYSCALE)