OSDN Git Service

dashenc: Write segment timelines properly if the timeline has gaps
authorMartin Storsjö <martin@martin.st>
Fri, 28 Nov 2014 08:40:05 +0000 (10:40 +0200)
committerMartin Storsjö <martin@martin.st>
Wed, 17 Dec 2014 07:42:30 +0000 (09:42 +0200)
commit2f628d5943c12389c07d652d23d3916997f9f0f6
treeb6218737cf2bb76e3c28f58489d03bf6c7aaeb33
parent6f4364aba9d70dc5fd9f1c88b9c03bf9ea893d40
dashenc: Write segment timelines properly if the timeline has gaps

Write a new start time if the duration of the previous segment
didn't match the start of the next one. Check that segments
actually are continuous before writing a repeat count.

This makes sure timestamps deduced from the timeline actually
match the real start timestamp as written in filenames (if
using a template containing $Time$).

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