diff --git a/autotests/CMakeLists.txt b/autotests/CMakeLists.txt index 644113f..145aea1 100644 --- a/autotests/CMakeLists.txt +++ b/autotests/CMakeLists.txt @@ -102,9 +102,15 @@ if (KF6Archive_FOUND) endif() if (TARGET avif) - kimageformats_read_tests( - avif - ) + if(${libavif_VERSION} VERSION_GREATER_EQUAL "1.2.0") + kimageformats_read_tests( + avif + ) + else() + message(WARNING "libavif ${libavif_VERSION} doesn't support decoding new AVIF files!\n" + "AVIF read tests are disabled, consider updating libavif.") + endif() + kimageformats_write_tests( avif-nodatacheck-lossless ) diff --git a/autotests/read/avif/ycgco-re.avif b/autotests/read/avif/ycgco-re.avif new file mode 100644 index 0000000..9b6d64e Binary files /dev/null and b/autotests/read/avif/ycgco-re.avif differ diff --git a/autotests/read/avif/ycgco-re.png b/autotests/read/avif/ycgco-re.png new file mode 100644 index 0000000..99ae1b2 Binary files /dev/null and b/autotests/read/avif/ycgco-re.png differ