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

Read the looping flag when `elst` box is empty. #391

Closed Zaggy1024 closed 1 year ago

Zaggy1024 commented 1 year ago

The test file with no pitm and no iloc boxes should have had a loop count of 0 due to their elst box flags being set to 0, but the looping field that was read was being skipped due to the empty edit list.

Note: these test files had to be modified manually using MP4Box in gpac, libavif will not write files with no edits.

Zaggy1024 commented 1 year ago

Added a fix for the clippy errors that were preventing CI, let me know if you'd prefer that the commit is in a separate PR instead.