Commit 6f6856b47 for imagemagick.org
commit 6f6856b47bb0fe0c8b1ecb43bf2bb6728f322ddc
Author: Cristy <urban-warrior@imagemagick.org>
Date: Sat Jan 31 13:23:16 2026 -0500
eliminate compiler exception
diff --git a/coders/yuv.c b/coders/yuv.c
index 8507fae32..261efb7fc 100644
--- a/coders/yuv.c
+++ b/coders/yuv.c
@@ -165,8 +165,8 @@ static Image *ReadYUVImage(const ImageInfo *image_info,ExceptionInfo *exception)
vertical_factor=horizontal_factor;
if ((flags & SigmaValue) != 0)
vertical_factor=(ssize_t) geometry_info.sigma;
- if ((horizontal_factor != 1) && (horizontal_factor != 2) ||
- (vertical_factor != 1) && (vertical_factor != 2))
+ if (((horizontal_factor != 1) && (horizontal_factor != 2)) ||
+ ((vertical_factor != 1) && (vertical_factor != 2)))
ThrowReaderException(CorruptImageError,"UnexpectedSamplingFactor");
}
if ((interlace == UndefinedInterlace) ||
@@ -670,8 +670,8 @@ static MagickBooleanType WriteYUVImage(const ImageInfo *image_info,Image *image,
vertical_factor=horizontal_factor;
if ((flags & SigmaValue) != 0)
vertical_factor=(ssize_t) geometry_info.sigma;
- if ((horizontal_factor != 1) && (horizontal_factor != 2) ||
- (vertical_factor != 1) && (vertical_factor != 2))
+ if (((horizontal_factor != 1) && (horizontal_factor != 2)) ||
+ ((vertical_factor != 1) && (vertical_factor != 2)))
ThrowWriterException(CorruptImageError,"UnexpectedSamplingFactor");
}
if ((interlace == UndefinedInterlace) ||