Commit 993e34b1 for libheif

commit 993e34b1f0b1c2ab132863b971d0e0244485eb7e
Author: Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
Date:   Tue Sep 15 16:28:36 2026 +0200

    split-out the AVIF part of the "ispe odd size" test

    Skip respective part if AV1 or HEVC codec is unavailable.

diff --git a/tests/encode.cc b/tests/encode.cc
index c90f1c4b..18464fd8 100644
--- a/tests/encode.cc
+++ b/tests/encode.cc
@@ -143,12 +143,21 @@ static void test_ispe_size(heif_compression_format compression,


 TEST_CASE( "ispe odd size", "[heif_context]" ) {
+  if (!heif_have_encoder_for_format(heif_compression_HEVC)) {
+     SKIP("HEVC encoder not available, skipping test");
+  }

   // HEVC encoders typically encode with even dimensions only
   test_ispe_size(heif_compression_HEVC, heif_orientation_normal, 121,99, 122,100);
   test_ispe_size(heif_compression_HEVC, heif_orientation_rotate_180, 121,99, 122,100);
   test_ispe_size(heif_compression_HEVC, heif_orientation_rotate_90_cw, 121,99, 122,100);
   test_ispe_size(heif_compression_HEVC, heif_orientation_rotate_90_cw, 120,100, 120,100);
+}
+
+TEST_CASE( "AVIF ispe odd size", "[heif_context]" ) {
+  if (!heif_have_encoder_for_format(heif_compression_AV1)) {
+     SKIP("AV1 encoder not available, skipping test");
+  }

   // AVIF encoders typically encode with odd dimensions
   test_ispe_size(heif_compression_AV1, heif_orientation_normal, 121,99, 121,99);