From fe612ea6e47dcb2c6c39737e2871b15b9fdeb75a Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 22 Nov 2025 17:40:40 +1100 Subject: [PATCH] Revert "Added argument that was removed in 0.9.0" This reverts commit 79f941dfa526486b83d9b14b7fa29253093a22b2. --- src/_jpegxl.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/_jpegxl.c b/src/_jpegxl.c index e3396254b..ca7fdf7f4 100644 --- a/src/_jpegxl.c +++ b/src/_jpegxl.c @@ -288,12 +288,7 @@ decoder_loop_skip_process: // got color encoding if (decp->status == JXL_DEC_COLOR_ENCODING) { decp->status = JxlDecoderGetICCProfileSize( - decp->decoder, -#if JPEGXL_MINOR_VERSION < 9 - NULL, -#endif - JXL_COLOR_PROFILE_TARGET_DATA, - &decp->jxl_icc_len + decp->decoder, JXL_COLOR_PROFILE_TARGET_DATA, &decp->jxl_icc_len ); _JXL_CHECK("JxlDecoderGetICCProfileSize"); @@ -305,9 +300,6 @@ 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