diff --git a/src/imageformats/avif.cpp b/src/imageformats/avif.cpp index 9436a5b..54111e0 100644 --- a/src/imageformats/avif.cpp +++ b/src/imageformats/avif.cpp @@ -97,6 +97,10 @@ bool QAVIFHandler::ensureDecoder() m_decoder = avifDecoderCreate(); +#if AVIF_VERSION >= 90100 + m_decoder->strictFlags = AVIF_STRICT_DISABLED; +#endif + avifResult decodeResult; decodeResult = avifDecoderSetIOMemory(m_decoder, m_rawAvifData.data, m_rawAvifData.size);