heif: remove unnecessary call

heif_context_set_security_limits is not needed, new limits are
applied instantly via modifications to the heif_limits object.
This commit is contained in:
Daniel Novomeský
2026-11-04 15:31:19 +01:00
parent f7408f5a77
commit 24d618ec17
-7
View File
@@ -906,13 +906,6 @@ bool HEIFHandler::ensureDecoder()
#if LIBHEIF_HAVE_VERSION(1, 20, 0) #if LIBHEIF_HAVE_VERSION(1, 20, 0)
heif_limits->max_total_memory = heif_limits->max_memory_block_size; heif_limits->max_total_memory = heif_limits->max_memory_block_size;
#endif #endif
err = heif_context_set_security_limits(ctx, heif_limits);
if (err.code) {
qCWarning(LOG_HEIFPLUGIN) << "heif_context_set_security_limits error:" << err.message;
heif_context_free(ctx);
m_parseState = ParseHeicError;
return false;
}
} }
#endif #endif