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 7be8647 commit aa74a75Copy full SHA for aa74a75
src/isobmff.rs
@@ -328,7 +328,7 @@ pub fn is_heif(buf: &[u8]) -> bool {
328
let mut boxp = BoxSplitter::new(buf);
329
while let Ok((boxtype, mut body)) = boxp.child_box() {
330
if boxtype == b"ftyp" {
331
- let _major_brand_minor_version = if body.slice(8).is_err() {
+ let Ok(_major_brand_minor_version) = body.slice(8) else {
332
return false;
333
};
334
while let Ok(compat_brand) = body.array4() {
0 commit comments