Skip to content

Commit 89b277e

Browse files
committed
Use more compact AVIF_VERSION
This keeps us in sync with libgd. See libgd/libgd#723 .
1 parent 36698d2 commit 89b277e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/gd/libgd/gd_avif.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ gdImagePtr gdImageCreateFromAvifCtx (gdIOCtx *ctx)
343343
decoder = avifDecoderCreate();
344344

345345
// Check if libavif version is >= 0.9.1
346-
#if AVIF_VERSION_MAJOR > 0 || (AVIF_VERSION_MAJOR == 0 && AVIF_VERSION_MINOR > 9) || (AVIF_VERSION_MAJOR == 0 && AVIF_VERSION_MINOR == 9 && AVIF_VERSION_PATCH >= 1)
346+
#if AVIF_VERSION >= 90100
347347
// If so, allow the PixelInformationProperty ('pixi') to be missing in AV1 image
348348
// items. libheif v1.11.0 or older does not add the 'pixi' item property to
349349
// AV1 image items. (This issue has been corrected in libheif v1.12.0.)

0 commit comments

Comments
 (0)