mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 11:54:01 +00:00
Calculate proper timecodes for positive Vorbis sync.
This commit is contained in:
parent
a025d796f4
commit
d0cb2d1455
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user