From 2a91962c48513fb8b24391aee046526587da1e21 Mon Sep 17 00:00:00 2001 From: Lawrence Lee <45837045+Lawrence37@users.noreply.github.com> Date: Tue, 19 Nov 2024 23:35:07 -0800 Subject: [PATCH] Fix usage of deprecated Exiv2 function Exiv2::enableBMFF() is deprecated as of v0.28.3. Only the CMake flag EXIV2_ENABLE_BMFF is required to enable BMFF support. --- rtengine/metadata.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtengine/metadata.cc b/rtengine/metadata.cc index add935899..199b3e957 100644 --- a/rtengine/metadata.cc +++ b/rtengine/metadata.cc @@ -579,7 +579,7 @@ void Exiv2Metadata::init() { cache_.reset(new ImageCache(IMAGE_CACHE_SIZE)); Exiv2::XmpParser::initialize(); -#ifdef EXV_ENABLE_BMFF +#if defined EXV_ENABLE_BMFF && !EXIV2_TEST_VERSION(0, 28, 3) Exiv2::enableBMFF(true); #endif }