Skip to content

Ignore unused trailing data in mvhd. #416

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

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

kinetiknz
Copy link
Collaborator

This addresses BMO 1867424, where the linked media contains an unusual mvhd with 2 bytes of trailing data. Since mvhd has a fixed set of fields, we were expecting the mvhd size to match the spec based on the size of the known fields (108 bytes for this v0 file, v1 would be larger due to 64-bit fields) but the mvhd box size is 110 bytes in this file. To address this, we now skip the remaining unknown bytes based on the box's reported size.

@kinetiknz kinetiknz requested a review from ashleyz January 10, 2024 01:32
@kinetiknz kinetiknz self-assigned this Jan 10, 2024
Copy link
Contributor

@ashleyz ashleyz left a comment

Choose a reason for hiding this comment

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

LGTM!

@padenot padenot merged commit a138e40 into mozilla:master Jan 31, 2024
@padenot
Copy link
Contributor

padenot commented Jan 31, 2024

We need to land this.

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.

3 participants