summaryrefslogtreecommitdiffstats
path: root/0001-ignore_sequence_editlist-only-in-libheif-1.21.patch
blob: 7d33d7581498df3888a342f4a44ca382bcbbbc2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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