[vlc-commits] mux: mp4: set timestamps on empty sub block

Francois Cartegnie git at videolan.org
Tue Jun 10 20:37:16 CEST 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Jun 10 18:12:31 2014 +0200| [13a10cd3df410ec796b20ba8770a1469baef17a7] | committer: Francois Cartegnie

mux: mp4: set timestamps on empty sub block

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

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

diff --git a/modules/mux/mp4.c b/modules/mux/mp4.c
index 9e00b00..370ce91 100644
--- a/modules/mux/mp4.c
+++ b/modules/mux/mp4.c
@@ -556,6 +556,8 @@ static int Mux(sout_mux_t *p_mux)
                 p_stream->i_last_dts += i_length;
 
                 /* Write a " " */
+                p_data->i_dts = p_stream->i_last_dts;
+                p_data->i_dts = p_data->i_pts;
                 p_data->p_buffer[0] = 0;
                 p_data->p_buffer[1] = 1;
                 p_data->p_buffer[2] = ' ';



More information about the vlc-commits mailing list