Commit e5a37667 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'b91a5757'

* commit 'b91a5757':
  dashenc: Fix writing of timelines that don't start at t=0
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 8d3133f4 b91a5757
......@@ -214,8 +214,10 @@ static void output_segment_list(OutputStream *os, AVIOContext *out, DASHContext
Segment *seg = os->segments[i];
int repeat = 0;
avio_printf(out, "\t\t\t\t\t\t<S ");
if (i == start_index || seg->time != cur_time)
if (i == start_index || seg->time != cur_time) {
cur_time = seg->time;
avio_printf(out, "t=\"%"PRId64"\" ", seg->time);
}
avio_printf(out, "d=\"%d\" ", seg->duration);
while (i + repeat + 1 < os->nb_segments &&
os->segments[i + repeat + 1]->duration == seg->duration &&
......
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