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 committed Sep 1, 2023
1 parent f58124d commit 904e8df
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 904e8df

Please sign in to comment.