From 6ade0ae9db8ba30ab14aca7f0a71b0d875a6b20e Mon Sep 17 00:00:00 2001 From: Ilkka Ollakka Date: Sun, 13 Jun 2010 23:20:28 +0300 Subject: [PATCH] mp4: calculate stream duration sameway all around --- modules/mux/mp4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mux/mp4.c b/modules/mux/mp4.c index 8fde903da3..8af05589ec 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 */ -- 2.39.2