]> granicus.if.org Git - imagemagick/commitdiff
Corrected patch.
authorDirk Lemstra <dirk@git.imagemagick.org>
Sat, 15 Sep 2018 14:12:22 +0000 (16:12 +0200)
committerDirk Lemstra <dirk@git.imagemagick.org>
Sat, 15 Sep 2018 14:12:22 +0000 (16:12 +0200)
coders/jpeg.c

index d046c6a46af7221f5b370c4e10c2516749076cf6..020ffaac692d8a81533fff594468f9d151d662bb 100644 (file)
@@ -2377,9 +2377,9 @@ static MagickBooleanType WriteJPEGImage(const ImageInfo *image_info,
     }
 #if defined(C_ARITH_CODING_SUPPORTED)
   option=GetImageOption(image_info,"jpeg:arithmetic-coding");
-  if (option != (const char *) NULL)
+  if (IsStringTrue(option) != MagickFalse)
     {
-      jpeg_info.arith_code=IsStringTrue(option) != MagickFalse ? TRUE : FALSE;
+      jpeg_info.arith_code=TRUE;
       jpeg_info.optimize_coding=FALSE; // Not supported.
     }
 #endif