From 6821c29819b03fd0831de0dc57569b0580bad9a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Novomesk=C3=BD?= Date: Wed, 12 Mar 2025 13:26:42 +0100 Subject: [PATCH] heif: disable AVCI decoder for libheif before 1.19.6 --- autotests/CMakeLists.txt | 2 +- src/imageformats/heif.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autotests/CMakeLists.txt b/autotests/CMakeLists.txt index 7fd0db4..037d56f 100644 --- a/autotests/CMakeLists.txt +++ b/autotests/CMakeLists.txt @@ -124,7 +124,7 @@ if (LibHeif_FOUND) ) endif() - if (LibHeif_VERSION VERSION_GREATER_EQUAL "1.19.0") + if (LibHeif_VERSION VERSION_GREATER_EQUAL "1.19.6") kimageformats_read_tests(FUZZ 4 avci ) diff --git a/src/imageformats/heif.cpp b/src/imageformats/heif.cpp index af2fdb5..fc80ab3 100644 --- a/src/imageformats/heif.cpp +++ b/src/imageformats/heif.cpp @@ -1042,7 +1042,7 @@ void HEIFHandler::queryHeifLib() #if LIBHEIF_HAVE_VERSION(1, 13, 0) m_hej2_decoder_available = heif_have_decoder_for_format(heif_compression_JPEG2000); #endif -#if LIBHEIF_HAVE_VERSION(1, 19, 0) +#if LIBHEIF_HAVE_VERSION(1, 19, 6) m_avci_decoder_available = heif_have_decoder_for_format(heif_compression_AVC); #endif m_plugins_queried = true;