vlc | branch: master | Francois Cartegnie <[email protected]> | Fri Sep 26 
22:26:22 2014 +0200| [9667e8960a96c87398ebc4143c1f8456b6af634e] | committer: 
Francois Cartegnie

mux: mp4frag: add tfdt atom

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9667e8960a96c87398ebc4143c1f8456b6af634e
---

 modules/mux/mp4.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/mux/mp4.c b/modules/mux/mp4.c
index 31624ec..9594285 100644
--- a/modules/mux/mp4.c
+++ b/modules/mux/mp4.c
@@ -2485,6 +2485,11 @@ static bo_t *GetMoofBox(sout_mux_t *p_mux, size_t 
*pi_mdat_total_size,
 
         box_gather(traf, tfhd);
 
+        /* *** add /moof/traf/tfdt *** */
+        bo_t *tfdt = box_full_new("tfdt", 1, 0);
+        bo_add_64be(tfdt, p_stream->i_written_duration * p_stream->i_timescale 
/ CLOCK_FREQ );
+        box_gather(traf, tfdt);
+
         /* *** add /moof/traf/trun *** */
         if (p_stream->read.p_first)
         {

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to