dashenc: Fix writing of timelines that don't start at t=0
authorMartin Storsjö <martin@martin.st>
Mon, 29 Dec 2014 13:39:23 +0000 (15:39 +0200)
committerMartin Storsjö <martin@martin.st>
Mon, 29 Dec 2014 21:26:25 +0000 (23:26 +0200)
commitb91a5757fcbf723da99b05b298a6f820271dbc2b
treeef728426c6e57240dc4a4efaf00c0d25ba5908b3
parent50036c30df83b609bc5a95276f1287f8b9b8bdd6
dashenc: Fix writing of timelines that don't start at t=0

When writing an explicit time, reset the cur_time variable to this
value as well. This avoids writing excessive time attributes for each
segment in the timeline, as long as the segments are continuous.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/dashenc.c