diff options
author | Ben Boeckel <mathstuf@gmail.com> | 2013-10-15 21:16:05 -0400 |
---|---|---|
committer | Ben Boeckel <mathstuf@gmail.com> | 2013-10-15 21:16:05 -0400 |
commit | 1b30a0bbf901c04140770d37c58cb63ef676406e (patch) | |
tree | 8a83975ec5f0b3b41823f4b7ee60300b9f47f606 /mpvcore | |
parent | 648e8fbeeddeb8e490d2007546556844bc1d29f8 (diff) | |
download | mpv-1b30a0bbf901c04140770d37c58cb63ef676406e.tar.bz2 mpv-1b30a0bbf901c04140770d37c58cb63ef676406e.tar.xz |
matroska: don't add time for chapters without a source
Diffstat (limited to 'mpvcore')
-rw-r--r-- | mpvcore/timeline/tl_matroska.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mpvcore/timeline/tl_matroska.c b/mpvcore/timeline/tl_matroska.c index e5276b2a75..e8a855a233 100644 --- a/mpvcore/timeline/tl_matroska.c +++ b/mpvcore/timeline/tl_matroska.c @@ -469,6 +469,9 @@ static void build_timeline_loop(struct MPOpts *opts, /* We're missing a part of the chapter, so add it to the accounting. */ account_missing_time(missing_time, chapter_length, "the source for a chapter could not be found"); + /* We don't have the source, but don't leave a gap in the timeline for + * the source. */ + chapter_length = 0; found:; *starttime += chapter_length; /* If we're after the limit on this chapter, stop here. */ |