False positive: no warning/error for avif with invalid `property_index` in `ItemPropertyAssociationBox` (`ipma`)
baumanj opened this issue · comments
The attached file is valid aside from the fact that the 3rd entry in the ipma
box, which should have property_index
3, to reference the pasp
property in the ipco
box, instead has the value 5, an invalid index since there are only 4 entries (ispe
, pixi
, pasp
, av1C
) in the ipco
box. However, the avif validator gives no errors.
I think it is a valid but I couldn't find any normative reference about this case in the ISOBMFF standard.
@cconcolato opinion on this?
I'd say the spec reference ISOBMFF (ISO/IEC 14496-12:2020) § 8.11.14.3 is what makes this invalid:
property_index
is either 0 indicating that no property is associated (the essential indicator shall also be 0), or is the 1-based index (counting all boxes, includingFreeSpace
boxes) of the associated property box in theItemPropertyContainerBox
contained in the sameItemPropertiesBox
.
So we need to fix the text at a standardization level. @cconcolato Do you plan to attend the next MPEG meeting?
The way I read it, the standard text is ok and makes this invalid. What do you think would need to be changed, @rbouqueau ?
The text misses a normative sentence to forbid index overflow e.g. "The property index shall not exceed the number of property boxes in the ItemPropertyContainerBox contained in the same ItemPropertiesBox".
Looks like the normative sentence will be added per MPEGGroup/FileFormat#34 (comment)
Addressed in MPEGGroup/FileFormat#34 (ISOBMFF 8th Edition)