From c669d7b08038884d202da1b02e1fdaef49b5305e Mon Sep 17 00:00:00 2001 From: Stuart Woodbury Date: Fri, 14 Jul 2023 00:54:25 -0400 Subject: [PATCH] fix(TrafBox): write out tfdt and trun --- src/mp4box/traf.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mp4box/traf.rs b/src/mp4box/traf.rs index 51f812d..95e6f6e 100644 --- a/src/mp4box/traf.rs +++ b/src/mp4box/traf.rs @@ -104,6 +104,12 @@ impl 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) }