diff options
| author | Remi Collet <remi@remirepo.net> | 2026-05-13 07:25:18 +0200 |
|---|---|---|
| committer | Remi Collet <remi@php.net> | 2026-05-13 07:25:18 +0200 |
| commit | 8936bb4648ed5774f3b8416978b638c897140c62 (patch) | |
| tree | 85a27622cb47e51a14b6897adba96f750576cc08 /0001-ignore_sequence_editlist-only-in-libheif-1.21.patch | |
| parent | 2d1b7584d5c233fcd8257e3758a304de31d06ef1 (diff) | |
report https://github.com/ImageMagick/ImageMagick/issues/8728
build error with libheif 1.20
fix build with libheif 1.20 using patch from
https://github.com/ImageMagick/ImageMagick/pull/8729
Diffstat (limited to '0001-ignore_sequence_editlist-only-in-libheif-1.21.patch')
| -rw-r--r-- | 0001-ignore_sequence_editlist-only-in-libheif-1.21.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/0001-ignore_sequence_editlist-only-in-libheif-1.21.patch b/0001-ignore_sequence_editlist-only-in-libheif-1.21.patch new file mode 100644 index 0000000..7d33d75 --- /dev/null +++ b/0001-ignore_sequence_editlist-only-in-libheif-1.21.patch @@ -0,0 +1,29 @@ +From 276841f65a6fdbc725e18040e383491684a00413 Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Wed, 13 May 2026 07:15:23 +0200 +Subject: [PATCH] ignore_sequence_editlist only in libheif 1.21 + +--- + coders/heic.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/coders/heic.c b/coders/heic.c +index e8e3211f2..1d69e7921 100644 +--- a/coders/heic.c ++++ b/coders/heic.c +@@ -696,11 +696,11 @@ static MagickBooleanType ReadHEICSequenceFrames(const ImageInfo *image_info, + if (timescale == 0) + timescale=1; + decode_options=heif_decoding_options_alloc(); ++#if LIBHEIF_NUMERIC_VERSION >= HEIC_COMPUTE_NUMERIC_VERSION(1,21,0) + decode_options->ignore_sequence_editlist=1; + /* + Detect alpha from the track and set up chroma format. + */ +-#if LIBHEIF_NUMERIC_VERSION >= HEIC_COMPUTE_NUMERIC_VERSION(1,21,0) + has_alpha=heif_track_has_alpha_channel(track); + image->alpha_trait=UndefinedPixelTrait; + if (has_alpha != 0) +-- +2.54.0 + |
