Skip to content

Commit

Permalink
Disables all strict checks.
Browse files Browse the repository at this point in the history
Allow to open older AVIF files.
  • Loading branch information
novomesk committed Jun 7, 2021
1 parent b2eae08 commit 7d081b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/file-avif-load.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,10 @@ GimpImage *load_image (GFile *file,

decoder = avifDecoderCreate();

#if AVIF_VERSION >= 90100
decoder->strictFlags = AVIF_STRICT_DISABLED;
#endif

decodeResult = avifDecoderSetIOMemory (decoder, raw.data, raw.size);
if (decodeResult != AVIF_RESULT_OK)
{
Expand Down

0 comments on commit 7d081b7

Please sign in to comment.