We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10da459 commit 8c06edaCopy full SHA for 8c06eda
1 file changed
mp4parse/src/lib.rs
@@ -4485,7 +4485,7 @@ fn read_ftyp<T: Read>(src: &mut BMFFBox<T>) -> Result<FileTypeBox> {
4485
let major = be_u32(src)?;
4486
let minor = be_u32(src)?;
4487
let bytes_left = src.bytes_left();
4488
- if !bytes_left.is_multiple_of(4) {
+ if bytes_left % 4 != 0 {
4489
return Status::FtypBadSize.into();
4490
}
4491
// Is a brand_count of zero valid?
0 commit comments