Skip to content

Commit e64650a

Browse files
alastor0325kinetiknz
authored andcommitted
fallback to 'map_or' to fix Linux build error.
1 parent 9c646c2 commit e64650a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mp4parse/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4734,7 +4734,7 @@ fn read_ctts<T: Read>(src: &mut BMFFBox<T>) -> Result<CompositionOffsetBox> {
47344734

47354735
if counts
47364736
.checked_mul(8)
4737-
.is_none_or(|bytes| u64::from(bytes) > src.bytes_left())
4737+
.map_or(true, |bytes| u64::from(bytes) > src.bytes_left())
47384738
{
47394739
return Status::CttsBadSize.into();
47404740
}

0 commit comments

Comments
 (0)