Calculate proper timecodes for positive Vorbis sync.

This commit is contained in:
Moritz Bunkus 2004-05-15 13:56:19 +00:00
parent a025d796f4
commit d0cb2d1455
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-05-15 Moritz Bunkus <moritz@bunkus.org>
* mkvmerge: bug fix: Audio sync for Vorbis was partially broken
for positive offsets.
2004-05-06 Moritz Bunkus <moritz@bunkus.org>
* mmg: Fix for compilation with wxWindows < 2.4.2.

View File

@ -172,7 +172,7 @@ vorbis_packetizer_c::process(memory_c &mem,
last_bs = this_bs;
samples_here = (this_bs + last_bs) / 4;
memory_c mem(zero, 2, false);
add_packet(mem, samples * 1000 / vi.rate,
add_packet(mem, samples * 1000000000 / vi.rate,
samples_here * 1000000000 / vi.rate);
}
}