We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf0cdb2 commit 79f941dCopy full SHA for 79f941d
src/_jpegxl.c
@@ -288,7 +288,12 @@ _jxl_decoder_new(PyObject *self, PyObject *args) {
288
// got color encoding
289
if (decp->status == JXL_DEC_COLOR_ENCODING) {
290
decp->status = JxlDecoderGetICCProfileSize(
291
- decp->decoder, JXL_COLOR_PROFILE_TARGET_DATA, &decp->jxl_icc_len
+ decp->decoder,
292
+#if JPEGXL_MINOR_VERSION < 9
293
+ NULL,
294
+#endif
295
+ JXL_COLOR_PROFILE_TARGET_DATA,
296
+ &decp->jxl_icc_len
297
);
298
_JXL_CHECK("JxlDecoderGetICCProfileSize");
299
@@ -300,6 +305,9 @@ _jxl_decoder_new(PyObject *self, PyObject *args) {
300
305
301
306
decp->status = JxlDecoderGetColorAsICCProfile(
302
307
decp->decoder,
308
309
310
303
311
JXL_COLOR_PROFILE_TARGET_DATA,
304
312
decp->jxl_icc,
313
decp->jxl_icc_len
0 commit comments