Calculate proper durations for subs from OGM.

This commit is contained in:
Moritz Bunkus 2004-02-01 10:07:04 +00:00
parent cd119820fa
commit 31b867012f
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-02-01 Moritz Bunkus <moritz@bunkus.org>
* mkvmerge: bug fix: The change from ms to ns precision broke
subtitle handling from OGM.
2004-01-31 Moritz Bunkus <moritz@bunkus.org>
* mkvmerge: Made "do not link files when splitting" the default,

View File

@ -897,7 +897,7 @@ ogm_reader_c::process_page(ogg_page *og) {
(op.packet[hdrlen + 1] != 0) && !iscr(op.packet[hdrlen + 1])))
dmx->packetizer->process(&op.packet[hdrlen + 1], op.bytes - 1 -
hdrlen, ogg_page_granulepos(og) * 1000000,
lenbytes * 1000000);
(int64_t)lenbytes * 1000000);
} else if (dmx->stype == OGM_STREAM_TYPE_VORBIS) {
dmx->packetizer->process(op.packet, op.bytes);