mozilla / mp4parse-rust

Parser for ISO Base Media Format aka video/mp4 written in Rust.
Mozilla Public License 2.0
404 stars 62 forks source link

Remove error for when an AVIF has no `iloc` box. #389

Closed Zaggy1024 closed 1 year ago

Zaggy1024 commented 1 year ago

Item locations can be omitted for AVIS-major files which don't contain pitm boxes. When no iloc is present, the locations map is default-initialized, and if the pitm references a nonexistent item, an error is thrown in strict mode.

I've added a couple test cases that work in Chrome but not in the upcoming Firefox AVIS patch. This should enable it to play those animations as expected.

kinetiknz commented 1 year ago

LGTM, thanks!