diff --git a/CHANGELOG.md b/CHANGELOG.md index e511578305..e480aef8c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ The changes are relative to the previous release, unless the baseline is specifi * Set avifDecoder::image->depth to the same value after avifDecoderParse() as after avifDecoderNextImage() when AVIF_ENABLE_EXPERIMENTAL_SAMPLE_TRANSFORM is enabled and when the file to decode contains a 'sato' derived image item. +* Allow version > 1 in iinf. ## [1.3.0] - 2025-05-09 diff --git a/src/read.c b/src/read.c index c87ee18dc1..0b70d0ab56 100644 --- a/src/read.c +++ b/src/read.c @@ -3229,11 +3229,8 @@ static avifResult avifParseItemInfoBox(avifMeta * meta, const uint8_t * raw, siz uint16_t tmp; AVIF_CHECKERR(avifROStreamReadU16(&s, &tmp), AVIF_RESULT_BMFF_PARSE_FAILED); // unsigned int(16) entry_count; entryCount = tmp; - } else if (version == 1) { - AVIF_CHECKERR(avifROStreamReadU32(&s, &entryCount), AVIF_RESULT_BMFF_PARSE_FAILED); // unsigned int(32) entry_count; } else { - avifDiagnosticsPrintf(diag, "Box[iinf] has an unsupported version %u", version); - return AVIF_RESULT_BMFF_PARSE_FAILED; + AVIF_CHECKERR(avifROStreamReadU32(&s, &entryCount), AVIF_RESULT_BMFF_PARSE_FAILED); // unsigned int(32) entry_count; } for (uint32_t entryIndex = 0; entryIndex < entryCount; ++entryIndex) {