Browse Source

- fixed returncode evaluation in parse_icc_common_header()

tags/v0.6.0^2
Andreas Romeyke 2 months ago
parent
commit
3846a3785e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/validate_icc/check_icc_header.c

+ 1
- 1
src/validate_icc/check_icc_header.c View File

@@ -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