Skip to content

Commit

Permalink
build: Fix broken libheif < 1.13 (#3970)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
lgritz authored Sep 1, 2023
1 parent 436ab6e commit 0246a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/heif.imageio/heifinput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0246a1b

Please sign in to comment.