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

mp4: calculate stream duration sameway all around

parent 01adc95c
......@@ -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 */
......
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