mp4box.js icon indicating copy to clipboard operation
mp4box.js copied to clipboard

Crash with very large number of samples

Open fcartegnie opened this issue 3 years ago • 1 comments

Use sample from there https://trac.ffmpeg.org/ticket/8895

Firefox unresponsive script kill Chrome straight error 64000

fcartegnie avatar Jan 26 '21 09:01 fcartegnie

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.

cconcolato avatar Aug 20 '21 00:08 cconcolato