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

Mp4Writer should use co64 by default, then convert to stco is possible for compatibility #71

Merged
merged 1 commit into from
May 25, 2022

Conversation

nemosupremo
Copy link
Contributor

This change allows Mp4Writer to support writing mp4 files that are larger than 4GB. Previously the Chunk Offset Atom was used exclusively, so if you built an MP4 file that was larger than 4GB, the Chunk Offset Atom was silently corrupted. This change uses the co64 atom by default, and then checks for stco compatibility at the end of the track write. If all the offsets are under the 2^32 limit, then a stco atom is written, otherwise a co60 atom is written.

@alfg alfg merged commit 3395976 into alfg:master May 25, 2022
@alfg
Copy link
Owner

alfg commented May 25, 2022

Thanks for this! Sorry for the late response!

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