Commit 42128f2b6 for imagemagick.org
commit 42128f2b6bb8edd8d5d6ed4902b67920e35460b6
Author: Dirk Lemstra <dirk@lemstra.org>
Date: Sat Jun 27 20:56:30 2026 +0200
Moved initialization.
diff --git a/coders/heic.c b/coders/heic.c
index 54ba83521..fd07f5782 100644
--- a/coders/heic.c
+++ b/coders/heic.c
@@ -1419,7 +1419,6 @@ static MagickBooleanType WriteHEICCICPProfile(Image *image,
struct heif_error
error;
- SetGeometryInfo(&cicp);
nclx_profile=heif_nclx_color_profile_alloc();
if (nclx_profile == (struct heif_color_profile_nclx *) NULL)
{
@@ -1427,6 +1426,7 @@ static MagickBooleanType WriteHEICCICPProfile(Image *image,
ResourceLimitError,"MemoryAllocationFailed","`%s'",image->filename);
return(MagickFalse);
}
+ SetGeometryInfo(&cicp);
cicp.rho=(double) nclx_profile->color_primaries;
cicp.sigma=(double) nclx_profile->transfer_characteristics;
cicp.xi=(double) nclx_profile->matrix_coefficients;