On 2023-07-01 06:54 pm, Peter Kovář wrote:
Signed-off-by: Peter Kovář <peter.ko...@reflexion.tv>
---
 libavcodec/libjxldec.c | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/libavcodec/libjxldec.c b/libavcodec/libjxldec.c
index 50417bcb02..bfff60769c 100644
--- a/libavcodec/libjxldec.c
+++ b/libavcodec/libjxldec.c
@@ -210,14 +210,23 @@ static int libjxl_get_icc(AVCodecContext *avctx)
     JxlDecoderStatus jret;
     /* an ICC profile is present, and we can meaningfully get it,
      * because the pixel data is not XYB-encoded */
+#if JPEGXL_NUMERIC_VERSION < JPEGXL_COMPUTE_NUMERIC_VERSION(0, 9, 0)

0.9.0 is still unreleased and unfortunately the API change wasn't accompanied with a version bump.

The API changes were pushed on Jun 21st and the version bump to 0.9.0 was pushed on Jan 12th. So this will still break compilation with older git checkouts of libjxl. Ideally libjxl should bump once more to 0.9.1

Regards,
Gyan

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to