Skip to content

Commit

Permalink
disable strict AVIF decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
qbnu committed May 25, 2024
1 parent dae157c commit c380b96
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/JPEGView/AVIFWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ void* AvifReader::ReadImage(int& width,
memcpy(cache.data, buffer, sizebytes);
cache.decoder = avifDecoderCreate();
cache.decoder->maxThreads = nthreads;
cache.decoder->strictFlags = AVIF_STRICT_DISABLED;
result = avifDecoderSetIOMemory(cache.decoder, cache.data, sizebytes);
if (result != AVIF_RESULT_OK) {
DeleteCache();
Expand Down

0 comments on commit c380b96

Please sign in to comment.