1
0
Fork 0
mirror of https://github.com/alfg/mp4-rust.git synced 2025-01-03 08:58:40 +00:00

fix(TrafBox): write out tfdt and trun

This commit is contained in:
Stuart Woodbury 2023-07-14 00:54:25 -04:00
parent 66f177005b
commit c669d7b080

View file

@ -104,6 +104,12 @@ impl<W: Write> WriteBox<&mut W> for TrafBox {
BoxHeader::new(self.box_type(), size).write(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)
}