mirror of
https://github.com/alfg/mp4-rust.git
synced 2024-12-23 04:26:27 +00:00
fix(trex): didn't compile
This commit is contained in:
parent
4d676b9da2
commit
6a591766df
2 changed files with 4 additions and 2 deletions
|
@ -56,7 +56,9 @@ fn get_boxes(file: File) -> Result<Vec<Box>> {
|
||||||
if let Some(mehd) = &mvex.mehd {
|
if let Some(mehd) = &mvex.mehd {
|
||||||
boxes.push(build_box(mehd));
|
boxes.push(build_box(mehd));
|
||||||
}
|
}
|
||||||
boxes.push(build_box(&mvex.trex));
|
for trex in &mvex.trex {
|
||||||
|
boxes.push(build_box(trex));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// trak.
|
// trak.
|
||||||
|
|
|
@ -93,7 +93,7 @@ impl<W: Write> WriteBox<&mut W> for MvexBox {
|
||||||
if let Some(mehd) = &self.mehd {
|
if let Some(mehd) = &self.mehd {
|
||||||
mehd.write_box(writer)?;
|
mehd.write_box(writer)?;
|
||||||
}
|
}
|
||||||
for trex in self.trex {
|
for trex in &self.trex {
|
||||||
trex.write_box(writer)?;
|
trex.write_box(writer)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue