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

ISOBMFF test case 12.1.3.2 reports error for 'clap' box of HEIF image item. #12

Closed aklemets closed 4 years ago

aklemets commented 4 years ago

When running the ISOBMFF test on a HEIF file I get an error saying that the 'clap' box is incorrectly placed inside the 'ipco' box. Actually, this is valid according to HEIF (section 6.5.9.1 in 2nd edition of the spec.) It is also valid according to MIAF. The test should not flag this as an error since a MIAF file is a HEIF file, which is a ISOBMFF file.

rbouqueau commented 4 years ago

You are right. I wanted to add a test to prevent misplaced clap/pasp boxes ; I had only looked in ISOBMFF. I have added the 'ipco' case but in the end nothing prevents another specification to allow pasp/clap at another location.

cconcolato commented 4 years ago

In general, in ISOBMFF, the presence of a known box in a location not explicitly allowed is a grey area. The validator should not try to check that a box is only present were it was specified.

rbouqueau commented 4 years ago

Should we remove the location part of the test then?

cconcolato commented 4 years ago

or add a warning if it's found in an unusual place?

rbouqueau commented 4 years ago

I've added warning (although for now they are pushed in a sink until we take a decision on 'should' and other warnings).