SDL_image: Be permissive so we can load as many AVIF images as possible

From 970ce40225cea4154ea3616a63478804156e1258 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 9 May 2022 15:15:58 -0700
Subject: [PATCH] Be permissive so we can load as many AVIF images as possible

---
 IMG_avif.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/IMG_avif.c b/IMG_avif.c
index 940850b..f2d75c6 100644
--- a/IMG_avif.c
+++ b/IMG_avif.c
@@ -249,6 +249,9 @@ SDL_Surface *IMG_LoadAVIF_RW(SDL_RWops *src)
         goto done;
     }
 
+    /* Be permissive so we can load as many images as possible */
+    decoder->strictFlags = AVIF_STRICT_DISABLED;
+
     context.src = src;
     context.start = start;
     io.destroy = DestroyAVIFIO;