diff options
author | Martin Reboredo <39890836+YakoYakoYokuYoku@users.noreply.github.com> | 2021-03-16 12:53:16 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-16 11:53:16 -0400 |
commit | f7d12c91fa8bb0313dfc9d5ca827674c49a7bc9d (patch) | |
tree | 5aa1a920503fc2102e8a8dcd33e18d641c05358e /tests | |
parent | 048cb47f20cb56c2d3b064f6ae1d24f89243e124 (diff) | |
download | libgd-f7d12c91fa8bb0313dfc9d5ca827674c49a7bc9d.tar.gz |
Permit compilation with libheif version 1.7.0 (#686)
libheif versions that came before 1.9.0 don't support changing the output image chroma.
I did not notice that and it resulted with tests failures across other OSes that don't have
a much newer libheif.
See #678. Supersedes #685.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/heif/heif_im2im.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/heif/heif_im2im.c b/tests/heif/heif_im2im.c index 202d6b3..01abf02 100644 --- a/tests/heif/heif_im2im.c +++ b/tests/heif/heif_im2im.c @@ -17,6 +17,9 @@ int main() int size = 0; CuTestImageResult result = {0, 0}; + if (!gdTestAssertMsg(heif_get_version_number_major() == 1 && heif_get_version_number_minor() >= 9, "changing chroma subsampling is not supported in this libheif version\n")) + return 77; + if (!gdTestAssertMsg(heif_have_decoder_for_format(heif_compression_HEVC) && heif_have_encoder_for_format(heif_compression_HEVC), "HEVC codec support missing from libheif\n")) return 77; |