Browse Source

- fixed returncode evaluation in parse_icc_common_header()

development
Andreas Romeyke 10 months ago
parent
commit
3846a3785e
  1. 2
      src/validate_icc/check_icc_header.c

2
src/validate_icc/check_icc_header.c

@ -172,7 +172,7 @@ icc_returncode_t parse_icc_v240(unsigned long iccsize, char* iccdata, unsigned l
assert(errmessage != NULL);
assert(errsize > 0);
if (iccsize < 128) FAIL (icc_error_header_v240_v430, "Invalid ICC profile ICC.1:2001-04, see http://www.color.org/ICC_Minor_Revision_for_Web.pdf for details");
int ret_header = parse_icc_common_header( iccsize, iccdata, errsize, errmessage, icc_profile_v240_v430);
icc_returncode_t ret_header = parse_icc_common_header( iccsize, iccdata, errsize, errmessage, icc_profile_v240_v430);
if (icc_is_valid != ret_header) return ret_header;
else {
// PCS xyz illuminant 68-79

Loading…
Cancel
Save