mirror of
https://github.com/alfg/mp4-rust.git
synced 2025-01-20 16:48:07 +00:00
fix(TrafBox): write out tfdt and trun
This commit is contained in:
parent
66f177005b
commit
c669d7b080
1 changed files with 6 additions and 0 deletions
|
@ -104,6 +104,12 @@ impl<W: Write> WriteBox<&mut W> for TrafBox {
|
||||||
BoxHeader::new(self.box_type(), size).write(writer)?;
|
BoxHeader::new(self.box_type(), size).write(writer)?;
|
||||||
|
|
||||||
self.tfhd.write_box(writer)?;
|
self.tfhd.write_box(writer)?;
|
||||||
|
if let Some(ref tfdt) = self.tfdt {
|
||||||
|
tfdt.write_box(writer)?;
|
||||||
|
}
|
||||||
|
if let Some(ref trun) = self.trun {
|
||||||
|
trun.write_box(writer)?;
|
||||||
|
}
|
||||||
|
|
||||||
Ok(size)
|
Ok(size)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue