Commit 6ade0ae9 authored by Ilkka Ollakka's avatar Ilkka Ollakka

mp4: calculate stream duration sameway all around

parent 01adc95c
...@@ -564,7 +564,7 @@ again: ...@@ -564,7 +564,7 @@ again:
} }
/* update */ /* 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; p_sys->i_pos += p_data->i_buffer;
/* Save the DTS */ /* Save the DTS */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment