We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 766bad0 commit a17fafcCopy full SHA for a17fafc
modules/imgcodecs/src/grfmt_avif.cpp
@@ -143,6 +143,7 @@ AvifDecoder::AvifDecoder() {
143
m_buf_supported = true;
144
channels_ = 0;
145
decoder_ = avifDecoderCreate();
146
+ decoder_->strictFlags = AVIF_STRICT_DISABLED;
147
}
148
149
AvifDecoder::~AvifDecoder() {
@@ -166,6 +167,7 @@ bool AvifDecoder::checkSignature(const String &signature) const {
166
167
std::unique_ptr<avifDecoder, decltype(&avifDecoderDestroy)> decoder(
168
avifDecoderCreate(), avifDecoderDestroy);
169
if (!decoder) return false;
170
+ decoder->strictFlags = AVIF_STRICT_DISABLED;
171
OPENCV_AVIF_CHECK_STATUS(
172
avifDecoderSetIOMemory(
173
decoder.get(), reinterpret_cast<const uint8_t *>(signature.c_str()),
0 commit comments