gpac / ComplianceWarden

A pluggable compliance checker (ISOBMFF, HEIF/MIAF/AVIF, AV1 HDR10+)
https://gpac.github.io/ComplianceWarden-wasm/
Other
16 stars 7 forks source link

Incorrect checking of 'clli' and 'mdvc' boxes #8

Closed aklemets closed 4 years ago

aklemets commented 4 years ago

The MIAF spec allows for the 'clli' and 'mdvc' boxes to be present both in the VisualSampleEntry for tracks (see sections 7.4.4.2.2 and 7.4.4.3.2),, and in the ItemPropertiesContainer for items (sections 7.3.7 and 7.3.8). The problem is that the test cases for MIAF sections 7.4.4.2.2 and 7.4.4.3.2, which deal with track-level requirements, scans the file for 'clli' and 'mdvc' boxes, and if it finds any such box that is not positioned inside the VisualSampleEntry, then it flags that as an error.

The code finds the 'clli' and 'mdvc' boxes that are present in the ItemPropertiesContainer and wrongly flags that as an error.