From 97a1ea181cb35fbe385b0913a8905030f90a622f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Novomesk=C3=BD?= Date: Wed, 12 Mar 2025 16:41:39 +0100 Subject: [PATCH] writetest: special handling for HEIF format --- autotests/writetest.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/autotests/writetest.cpp b/autotests/writetest.cpp index 3fb630b..8fbb228 100644 --- a/autotests/writetest.cpp +++ b/autotests/writetest.cpp @@ -370,7 +370,12 @@ int formatTest(const QString &suffix, bool createTemplates) QBuffer buffer(&ba); auto writtenImage = QImageReader(&buffer, suffix.toLatin1()).read(); if (writtenImage.isNull()) { - ++failed; + if (suffix.toLatin1() == "heif") { + // libheif + ffmpeg decoder is unable to load all HEIF files. + ++skipped; + } else { + ++failed; + } QTextStream(stdout) << "FAIL : error while reading the image " << formatName << "\n"; continue; }