From 0246a1bc8b13f57a7ffaf5c6f66fdef1baa3a5a9 Mon Sep 17 00:00:00 2001 From: Larry Gritz Date: Thu, 31 Aug 2023 17:09:00 -0700 Subject: [PATCH] build: Fix broken libheif < 1.13 (#3970) Typo introduced in #3894 broke our ability to build against libheif < 1.13. A conditional compilation that should have kicked in for >=1.16 was mistakenly written as 1.6. Signed-off-by: Larry Gritz --- src/heif.imageio/heifinput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/heif.imageio/heifinput.cpp b/src/heif.imageio/heifinput.cpp index e100a22b65..f2c0f57f56 100644 --- a/src/heif.imageio/heifinput.cpp +++ b/src/heif.imageio/heifinput.cpp @@ -62,7 +62,7 @@ class HeifInput final : public ImageInput { void oiio_heif_init() { -#if LIBHEIF_HAVE_VERSION(1, 6, 0) +#if LIBHEIF_HAVE_VERSION(1, 16, 0) static std::once_flag flag; std::call_once(flag, []() { heif_init(nullptr); }); #endif