summaryrefslogtreecommitdiffstats
path: root/0001-ignore_sequence_editlist-only-in-libheif-1.21.patch
diff options
context:
space:
mode:
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.patch29
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
+