summaryrefslogtreecommitdiff
path: root/src/cmsopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmsopt.c')
-rw-r--r--src/cmsopt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmsopt.c b/src/cmsopt.c
index 7b99c5e..1347e3d 100644
--- a/src/cmsopt.c
+++ b/src/cmsopt.c
@@ -465,6 +465,8 @@ cmsBool FixWhiteMisalignment(cmsPipeline* Lut, cmsColorSpaceSignature EntryColor
&WhitePointOut, NULL, &nOuts)) return FALSE;
// It needs to be fixed?
+ if (Lut ->InputChannels != nIns) return FALSE;
+ if (Lut ->OutputChannels != nOuts) return FALSE;
cmsPipelineEval16(WhitePointIn, ObtainedOut, Lut);