gpac / mp4box.js

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

AVIF with "mdat" size 0 crashes in MP4box.js #255

Closed y-guyon closed 2 years ago

y-guyon commented 2 years ago

The attached good.avif is a white 1x1 valid AVIF file. bad.avif is the same one but with a "mdat" size of 0 instead of 33. They both pass the latest version of the Compliance Warden but the web tool is not up-to-date. They both display correctly in Chrome. They both respect the ISO/IEC 14496-12 - 4.2 specification.

However bad.avif crashes in MP4box.js while good.avif does not. good.avif_and_bad.avif.zip

cconcolato commented 2 years ago

Thank you for the report. It should be fixed now.