mirror of
https://github.com/alfg/mp4-rust.git
synced 2025-01-03 08: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,10 +95,13 @@ impl<W: Write> WriteBox<&mut W> for OpusBox {
|
|||
|
||||
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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// https://github.com/Wicpar/async-mp4/blob/master/src/mp4box/dops.rs
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
|
||||
|
|
Loading…
Reference in a new issue