[vlc-commits] commit: mp4: calculate stream duration sameway all around (Ilkka Ollakka )
git at videolan.org
git at videolan.org
Sun Jun 13 22:36:18 CEST 2010
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sun Jun 13 23:20:28 2010 +0300| [6ade0ae9db8ba30ab14aca7f0a71b0d875a6b20e] | committer: Ilkka Ollakka
mp4: calculate stream duration sameway all around
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6ade0ae9db8ba30ab14aca7f0a71b0d875a6b20e
---
modules/mux/mp4.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/mux/mp4.c b/modules/mux/mp4.c
index 8fde903..8af0558 100644
--- a/modules/mux/mp4.c
+++ b/modules/mux/mp4.c
@@ -564,7 +564,7 @@ again:
}
/* update */
- p_stream->i_duration += p_data->i_length;
+ p_stream->i_duration = p_stream->i_last_dts - p_stream->i_dts_start + p_data->i_length;
p_sys->i_pos += p_data->i_buffer;
/* Save the DTS */
More information about the vlc-commits
mailing list