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.
This commit is contained in:
Lawrence Lee 2024-11-19 23:35:07 -08:00
parent 29a344aef1
commit 2a91962c48
No known key found for this signature in database
GPG Key ID: 048FF2B76A63895F

View File

@ -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
}