Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "missing-pixi-permitted" feature #327

Merged
merged 2 commits into from Aug 16, 2021
Merged

Add "missing-pixi-permitted" feature #327

merged 2 commits into from Aug 16, 2021

Conversation

baumanj
Copy link
Contributor

@baumanj baumanj commented Aug 7, 2021

Currently the PixelInformationProperty (pixi) box defined in HEIF (ISO 23008-12:2017) § 6.5.6 is required to be present per MIAF (ISO/IEC 23000-22:2019) specification § 7.3.6.6:

The pixel information property shall be associated with every image that is displayable (not hidden)

However due to a bug (now fixed) in libheif, AVIF images lacking this property were created and may remain in the wild. After receiving https://bugs.chromium.org/p/chromium/issues/detail?id=1198455, Chrome relaxed their check for this requirement and it is unclear whether it will be reinstated.

Discussion is underway to modify MIAF to allow the pixi property to be omitted, but it's unclear whether or when that will happen. To allow for maximum flexibility to adjust mp4parse's behavior, this PR adds a "missing-pixi-permitted" feature so the behavior can be finely tuned from within gecko without requiring an update of mp4parse code.

47bff4c makes the change assuming MPEGGroup/MIAF#9 will be accepted. 891df7c adds the feature and test changes that are only required during this period of uncertainty and can be removed later.

See also

@baumanj baumanj requested a review from kinetiknz August 7, 2021 16:41
@baumanj baumanj self-assigned this Aug 7, 2021
Copy link
Collaborator

@kinetiknz kinetiknz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@baumanj baumanj merged commit b31d94b into master Aug 16, 2021
@baumanj baumanj deleted the no-pixi-permitted branch August 16, 2021 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants