mp4box.js
mp4box.js copied to clipboard
Crash with very large number of samples
Use sample from there https://trac.ffmpeg.org/ticket/8895
Firefox unresponsive script kill Chrome straight error 64000
Thanks for the report. The file in invalid in multiple aspects:
- use of negative ctts value while the version of the box is set to 0
- the mdat has an invalid size. MP4Box command line reports:
[iso file] Incomplete box mdat - start 516469 size 1135222516 [iso file] Incomplete file while reading for dump - aborting parsing
The file also creates a problem for MP4Box.js because it contains 171,682,560 audio samples. The current logic in MP4Box.js is to create a Sample structure for all the Samples, right from the start. This is obviously not perfect. Changing that is on the roadmap but needs time.