mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 20:01:53 +00:00
Limited support for extracting CUE sheets from chapters not created with mkvmerge's "--chapters" option.
This commit is contained in:
parent
fcb2005d93
commit
0a86296b26
@ -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.
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user