Also check the type "skip" for a FreeSpaceBox
The type of a FreeSpaceBox can be "free" or "skip".
A follow-up to https://github.com/AOMediaCodec/libavif/pull/2398.
diff --git a/src/read.c b/src/read.c
index 612c1c2..6a122cc 100644
--- a/src/read.c
+++ b/src/read.c
@@ -4153,7 +4153,8 @@
}
#endif
- if (!isFtyp && (isNonSkippableVariableLengthBox || !memcmp(header.type, "free", 4) || !memcmp(header.type, "mdat", 4))) {
+ if (!isFtyp && (isNonSkippableVariableLengthBox || !memcmp(header.type, "free", 4) || !memcmp(header.type, "skip", 4) ||
+ !memcmp(header.type, "mdat", 4))) {
// Section 6.3.4 of ISO/IEC 14496-12:
// The FileTypeBox shall occur before any variable-length box (e.g. movie, free space, media data).
AVIF_CHECKERR(ftypSeen, AVIF_RESULT_BMFF_PARSE_FAILED);