Skip to content

Commit 79f941d

Browse files
committed
Added argument that was removed in 0.9.0
1 parent bf0cdb2 commit 79f941d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/_jpegxl.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,12 @@ _jxl_decoder_new(PyObject *self, PyObject *args) {
288288
// got color encoding
289289
if (decp->status == JXL_DEC_COLOR_ENCODING) {
290290
decp->status = JxlDecoderGetICCProfileSize(
291-
decp->decoder, JXL_COLOR_PROFILE_TARGET_DATA, &decp->jxl_icc_len
291+
decp->decoder,
292+
#if JPEGXL_MINOR_VERSION < 9
293+
NULL,
294+
#endif
295+
JXL_COLOR_PROFILE_TARGET_DATA,
296+
&decp->jxl_icc_len
292297
);
293298
_JXL_CHECK("JxlDecoderGetICCProfileSize");
294299

@@ -300,6 +305,9 @@ _jxl_decoder_new(PyObject *self, PyObject *args) {
300305

301306
decp->status = JxlDecoderGetColorAsICCProfile(
302307
decp->decoder,
308+
#if JPEGXL_MINOR_VERSION < 9
309+
NULL,
310+
#endif
303311
JXL_COLOR_PROFILE_TARGET_DATA,
304312
decp->jxl_icc,
305313
decp->jxl_icc_len

0 commit comments

Comments
 (0)