diff --git a/third_party/skcms/skcms.cc b/third_party/skcms/skcms.cc index 835478a6cc..55eb23b1e6 100644 --- a/third_party/skcms/skcms.cc +++ b/third_party/skcms/skcms.cc @@ -2314,7 +2314,9 @@ bool skcms_MakeUsableAsDestinationWithSingleCurve(skcms_ICCProfile* profile) { float min_max_error = INFINITY_; for (int i = 0; i < 3; i++) { skcms_TransferFunction inv; - skcms_TransferFunction_invert(&result.trc[i].parametric, &inv); + if (!skcms_TransferFunction_invert(&result.trc[i].parametric, &inv)) { + return false; + } float err = 0; for (int j = 0; j < 3; ++j) { diff --git a/third_party/skcms/version.sha1 b/third_party/skcms/version.sha1 index 1d5ddf6b64..333238b23b 100755 --- a/third_party/skcms/version.sha1 +++ b/third_party/skcms/version.sha1 @@ -1 +1 @@ -271ddb4ed93ab82bc8041f5f2e76c7ceb2a290d6 \ No newline at end of file +9369e44523c7d7683c19844925fff93ec7ed87c7 \ No newline at end of file