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

Feature request: cross-validate saio/saiz boxes for consistency #79

Open bradh opened 4 months ago

bradh commented 4 months ago

Describe the issue ISO/IEC 14496-12:2022 Sections 8.7.8 and 8.7.9 describe the SampleAuxilaryInformationSizesBox and SampleAuxiliaryInformationOffsetsBox respectively. These boxes need to be consistent with other boxes under stbl and traf respectively to be useful.

To Reproduce N/A.

Detailed analysis

There are requirements that the sample_count needs to meet (given the Semantics section).

Potentially the aux_info_type and aux_info_parameter values in saiz and saio should match up (i.e. there should be pairwise equivalency), although that is only implied in the standard, not actually required. At a stretch, CW could check the type against the known types and possibly validate that parameters are present / absent.

Potential patch

TBD.