mirror of
https://github.com/alfg/mp4-rust.git
synced 2025-01-18 07:45:49 +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,8 +95,11 @@ impl<W: Write> WriteBox<&mut W> for OpusBox {
|
|||
|
||||
written += self.dops.write_box(writer)?;
|
||||
|
||||
assert_eq!(written, self.box_size());
|
||||
Ok(written)
|
||||
if written != self.box_size() {
|
||||
Err(Error::InvalidData("written != box_size for OpusBox"))
|
||||
} else {
|
||||
Ok(written)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue