Skip to content

Commit 8c06eda

Browse files
committed
Revert is_multiple_of fix, too recent for gecko
1 parent 10da459 commit 8c06eda

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mp4parse/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4485,7 +4485,7 @@ fn read_ftyp<T: Read>(src: &mut BMFFBox<T>) -> Result<FileTypeBox> {
44854485
let major = be_u32(src)?;
44864486
let minor = be_u32(src)?;
44874487
let bytes_left = src.bytes_left();
4488-
if !bytes_left.is_multiple_of(4) {
4488+
if bytes_left % 4 != 0 {
44894489
return Status::FtypBadSize.into();
44904490
}
44914491
// Is a brand_count of zero valid?

0 commit comments

Comments
 (0)