mirror of
https://github.com/ImageMagick/ImageMagick.git
synced 2026-05-31 11:18:42 +02:00
eliminate compiler exception
This commit is contained in:
+4
-4
@@ -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) ||
|
||||
|
||||
Reference in New Issue
Block a user