matroska: don't add time for chapters without a source

This commit is contained in:
Ben Boeckel 2013-10-15 21:16:05 -04:00
parent 648e8fbeed
commit 1b30a0bbf9
1 changed files with 3 additions and 0 deletions

View File

@ -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. */