Skip to content

Commit

Permalink
tif_jxl: Add include for TIFF type and use TIFF_SIZE_FORMAT for error.
Browse files Browse the repository at this point in the history
Ran into errors on a custom Android build on Arm.
  • Loading branch information
schwehr committed Jan 9, 2025
1 parent 9bef0dc commit e2d46a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frmts/gtiff/tif_jxl.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,8 @@ static int JXLPreDecode(TIFF *tif, uint16_t s)
if (buffer_size != channel_size)
{
TIFFErrorExtR(tif, module,
"JxlDecoderExtraChannelBufferSize returned %ld, "
"expecting %u",
"JxlDecoderExtraChannelBufferSize returned "
"%" TIFF_SIZE_FORMAT ", expecting %u",
buffer_size, channel_size);
_TIFFfreeExt(tif, extra_channel_buffer);
return 0;
Expand Down
2 changes: 2 additions & 0 deletions frmts/gtiff/tif_jxl.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#ifndef TIFF_JXL_H_DEFINED
#define TIFF_JXL_H_DEFINED

#include "tiffio.h"

#ifndef COMPRESSION_JXL
#define COMPRESSION_JXL \
50002 /* JPEGXL: WARNING not registered in Adobe-maintained registry */
Expand Down

0 comments on commit e2d46a6

Please sign in to comment.