This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository legacy-imlib2.
View the commit online.
commit 74e6e9c422fd70a088cd690e08a217afe7d3bdb4
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Tue Mar 11 08:44:03 2025 +0100
HEIF loader: Demote avif support if regular avif loader is built
---
src/lib/loaders.c | 8 ++++++--
src/modules/loaders/loader_heif.c | 8 ++++++--
2 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/src/lib/loaders.c b/src/lib/loaders.c
index fcb19e8..d05da3a 100644
--- a/src/lib/loaders.c
+++ b/src/lib/loaders.c
@@ -34,8 +34,12 @@ static const char *const ext_ff[] = { "ff", NULL };
static const char *const ext_gif[] = { "gif", NULL };
#endif
#ifdef BUILD_HEIF_LOADER
-static const char *const ext_heif[] =
- { "heif", "heifs", "heic", "heics", "avci", "avcs", "avif", "avifs", NULL };
+static const char *const ext_heif[] = { "heif", "heifs", "heic", "heics",
+#ifndef BUILD_AVIF_LOADER
+ "avci", "avcs", "avif", "avifs",
+#endif
+ NULL
+};
#endif
static const char *const ext_ico[] = { "ico", NULL };
#ifdef BUILD_JPEG_LOADER
diff --git a/src/modules/loaders/loader_heif.c b/src/modules/loaders/loader_heif.c
index 2428103..23a633a 100644
--- a/src/modules/loaders/loader_heif.c
+++ b/src/modules/loaders/loader_heif.c
@@ -14,8 +14,12 @@
#define DBG_PFX "LDR-heif"
-static const char *const _formats[] =
- { "heif", "heifs", "heic", "heics", "avci", "avcs", "avif", "avifs" };
+static const char *const _formats[] = {
+ "heif", "heifs", "heic", "heics",
+#ifndef BUILD_AVIF_LOADER
+ "avci", "avcs", "avif", "avifs"
+#endif
+};
#define HEIF_BYTES_TO_CHECK 12L
#define HEIF_8BIT_TO_PIXEL_ARGB(plane, has_alpha) \
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.