Skip to content

Commit

Permalink
fallback to 'map_or' to fix Linux build error.
Browse files Browse the repository at this point in the history
  • Loading branch information
alastor0325 authored and kinetiknz committed Feb 4, 2025
1 parent 9c646c2 commit e64650a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mp4parse/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4734,7 +4734,7 @@ fn read_ctts<T: Read>(src: &mut BMFFBox<T>) -> Result<CompositionOffsetBox> {

if counts
.checked_mul(8)
.is_none_or(|bytes| u64::from(bytes) > src.bytes_left())
.map_or(true, |bytes| u64::from(bytes) > src.bytes_left())
{
return Status::CttsBadSize.into();
}
Expand Down

0 comments on commit e64650a

Please sign in to comment.