From 79f941dfa526486b83d9b14b7fa29253093a22b2 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Mon, 12 May 2025 19:01:15 +1000 Subject: [PATCH] Added argument that was removed in 0.9.0 --- src/_jpegxl.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/_jpegxl.c b/src/_jpegxl.c index 5672ce026..91df40524 100644 --- a/src/_jpegxl.c +++ b/src/_jpegxl.c @@ -288,7 +288,12 @@ decoder_loop_skip_process: // got color encoding if (decp->status == JXL_DEC_COLOR_ENCODING) { decp->status = JxlDecoderGetICCProfileSize( - decp->decoder, JXL_COLOR_PROFILE_TARGET_DATA, &decp->jxl_icc_len + decp->decoder, +#if JPEGXL_MINOR_VERSION < 9 + NULL, +#endif + JXL_COLOR_PROFILE_TARGET_DATA, + &decp->jxl_icc_len ); _JXL_CHECK("JxlDecoderGetICCProfileSize"); @@ -300,6 +305,9 @@ decoder_loop_skip_process: decp->status = JxlDecoderGetColorAsICCProfile( decp->decoder, +#if JPEGXL_MINOR_VERSION < 9 + NULL, +#endif JXL_COLOR_PROFILE_TARGET_DATA, decp->jxl_icc, decp->jxl_icc_len