[FFmpeg-devel] [PATCH] Adapted to the latest JPEG XL library version 0.9.0

Gyan Doshi ffmpeg at gyani.pro
Sat Jul 1 16:55:24 EEST 2023



On 2023-07-01 06:54 pm, Peter Kovář wrote:
> Signed-off-by: Peter Kovář <peter.kovar at 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



More information about the ffmpeg-devel mailing list