mirror of
https://github.com/alfg/mp4-rust.git
synced 2025-01-05 09:58:40 +00:00
fix(opus): remove assert_eq
This commit is contained in:
parent
c41654fdd5
commit
9887024513
1 changed files with 5 additions and 2 deletions
|
@ -95,9 +95,12 @@ impl<W: Write> WriteBox<&mut W> for OpusBox {
|
||||||
|
|
||||||
written += self.dops.write_box(writer)?;
|
written += self.dops.write_box(writer)?;
|
||||||
|
|
||||||
assert_eq!(written, self.box_size());
|
if written != self.box_size() {
|
||||||
|
Err(Error::InvalidData("written != box_size for OpusBox"))
|
||||||
|
} else {
|
||||||
Ok(written)
|
Ok(written)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://github.com/Wicpar/async-mp4/blob/master/src/mp4box/dops.rs
|
// https://github.com/Wicpar/async-mp4/blob/master/src/mp4box/dops.rs
|
||||||
|
|
Loading…
Reference in a new issue