1
0
Fork 0
mirror of https://github.com/alfg/mp4-rust.git synced 2024-12-22 20:16:27 +00:00

fix(trex): didn't compile

This commit is contained in:
Stuart Woodbury 2023-07-14 16:58:32 -04:00
parent 4d676b9da2
commit 6a591766df
2 changed files with 4 additions and 2 deletions

View file

@ -56,7 +56,9 @@ fn get_boxes(file: File) -> Result<Vec<Box>> {
if let Some(mehd) = &mvex.mehd {
boxes.push(build_box(mehd));
}
boxes.push(build_box(&mvex.trex));
for trex in &mvex.trex {
boxes.push(build_box(trex));
}
}
// trak.

View file

@ -93,7 +93,7 @@ impl<W: Write> WriteBox<&mut W> for MvexBox {
if let Some(mehd) = &self.mehd {
mehd.write_box(writer)?;
}
for trex in self.trex {
for trex in &self.trex {
trex.write_box(writer)?;
}