From 6fa4c04deaf516e938ab0f458cc931318b42ea32 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 26 Nov 2023 16:51:05 +0000 Subject: jpegxl: Designated initialiser for output format struct So I could see the meanings of how we'd set up the decode. --- content/handlers/image/jpegxl.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/content/handlers/image/jpegxl.c b/content/handlers/image/jpegxl.c index ba385f3ab..d5152fb7a 100644 --- a/content/handlers/image/jpegxl.c +++ b/content/handlers/image/jpegxl.c @@ -49,7 +49,12 @@ /** * output image format */ -static const JxlPixelFormat jxl_output_format = {4, JXL_TYPE_UINT8, JXL_LITTLE_ENDIAN, 0}; +static const JxlPixelFormat jxl_output_format = { + .num_channels = 4, + .data_type = JXL_TYPE_UINT8, + .endianness = JXL_LITTLE_ENDIAN, + .align = 0, +}; /** * Content create entry point. -- cgit v1.2.3