mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
Merge commit 'b91a5757fcbf723da99b05b298a6f820271dbc2b'
* commit 'b91a5757fcbf723da99b05b298a6f820271dbc2b': dashenc: Fix writing of timelines that don't start at t=0 Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
e5a3766767
@ -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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user