Limited support for extracting CUE sheets from chapters not created with mkvmerge's "--chapters" option.

This commit is contained in:
Moritz Bunkus 2004-07-26 20:39:25 +00:00
parent fcb2005d93
commit 0a86296b26
2 changed files with 13 additions and 0 deletions

View File

@ -1,5 +1,9 @@
2004-07-26 Moritz Bunkus <moritz@bunkus.org>
* mkvextract: new feature: Limited support for extracting chapters
as CUE sheets that haven't been created by using a CUE sheet with
mkvmerge's "--chapters" option.
* mkvmerge: bug fix: Block durations with 0s length (e.g. entries
in a SSA file) were not written.

View File

@ -330,6 +330,15 @@ write_cuesheet(const char *file_name,
print_if_available("DATE", " REM DATE %s\n");
print_if_available("GENRE", " REM GENRE %s\n");
print_comments(" ", *tag, out);
} else {
index_01 = get_chapter_start(atom);
out.printf(" TITLE \"%s\"\n",
get_chapter_name(atom).c_str());
out.printf(" INDEX 01 %02lld:%02lld:%02lld\n",
index_01 / 1000000 / 1000 / 60,
(index_01 / 1000000 / 1000) % 60,
irnd((double)(index_01 % 1000000000ll) * 75.0 /
1000000000.0));
}
}
}