gpac / mp4box.js

JavaScript version of GPAC's MP4Box tool
https://gpac.github.io/mp4box.js/
BSD 3-Clause "New" or "Revised" License
1.92k stars 325 forks source link

Build ESDS box missing data property #341

Open hughfenghen opened 1 year ago

hughfenghen commented 1 year ago

Missing data causes the size to be calculated incorrectly, which ultimately prevents the file from being parsed.

Adding the code after https://github.com/gpac/mp4box.js/blob/master/src/parsing/esds.js#L2 seems to solve the problem this.data = esd_data

Releated: https://github.com/hughfenghen/WebAV/issues/10