summaryrefslogtreecommitdiff
path: root/lcms2mt/src/cmsio1.c
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2020-05-25 13:32:26 +0100
committerRobin Watts <Robin.Watts@artifex.com>2020-06-04 14:22:23 +0100
commiteb492c353084600d94877f7157840d24dd7f9301 (patch)
tree5a7b84204a51dab5da8e05273af398d63ddad1a2 /lcms2mt/src/cmsio1.c
parenta83716a1657df0a63aafa6582f47a93315aa61a6 (diff)
downloadghostpdl-eb492c353084600d94877f7157840d24dd7f9301.tar.gz
Update lcms2mt to lcms2-2.10rc2.
Diffstat (limited to 'lcms2mt/src/cmsio1.c')
-rw-r--r--lcms2mt/src/cmsio1.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/lcms2mt/src/cmsio1.c b/lcms2mt/src/cmsio1.c
index 627f8598e..5c3d3fa2c 100644
--- a/lcms2mt/src/cmsio1.c
+++ b/lcms2mt/src/cmsio1.c
@@ -1,7 +1,7 @@
//---------------------------------------------------------------------------------
//
// Little Color Management System
-// Copyright (c) 1998-2017 Marti Maria Saguer
+// Copyright (c) 1998-2020 Marti Maria Saguer
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the "Software"),
@@ -308,7 +308,6 @@ cmsPipeline* CMSEXPORT _cmsReadInputLUT(cmsContext ContextID, cmsHPROFILE hProfi
cmsTagTypeSignature OriginalType;
cmsTagSignature tag16;
cmsTagSignature tagFloat;
- int k;
// On named color, take the appropriate tag
if (cmsGetDeviceClass(ContextID, hProfile) == cmsSigNamedColorClass) {
@@ -346,17 +345,9 @@ cmsPipeline* CMSEXPORT _cmsReadInputLUT(cmsContext ContextID, cmsHPROFILE hProfi
return _cmsReadFloatInputTag(ContextID, hProfile, tagFloat);
}
- /* There are profiles out there (not legal) that may only have a
- colorimetric or saturation tag and no perceptual tag. If we
- can't find the specified intent be a bit robust and not give
- up until we can't find any table, starting with perceptual */
+ // Revert to perceptual if no tag is found
if (!cmsIsTag(ContextID, hProfile, tag16)) {
- for (k = 0; k < 3; k++) {
- if (cmsIsTag(ContextID, hProfile, Device2PCS16[k])) {
- tag16 = Device2PCS16[k];
- break;
- }
- }
+ tag16 = Device2PCS16[0];
}
if (cmsIsTag(ContextID, hProfile, tag16)) { // Is there any LUT-Based table?