videojs / mux.js

Lightweight utilities for inspecting and manipulating video container formats.
Apache License 2.0
1.11k stars 210 forks source link

fix: added support for 64 bit atom sizes #410

Open kentuckyfriedtakahe opened 2 years ago

kentuckyfriedtakahe commented 2 years ago

Some MP4 files use a 64 bit length which and the current implementation takes the 64 bit sentinel (size=1) to mean "maximum size". It seems that some devices (I think this includes iPhone) place an mdat with a 64 bit length (even though not needed) head of the moov. This change allows the parser to find the moov.