From d0cb2d145538a6cb8d027301e269d906f1826f08 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sat, 15 May 2004 13:56:19 +0000 Subject: [PATCH] Calculate proper timecodes for positive Vorbis sync. --- ChangeLog | 5 +++++ src/output/p_vorbis.cpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9f84eec1d..fe5b7ff29 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-05-15 Moritz Bunkus + + * mkvmerge: bug fix: Audio sync for Vorbis was partially broken + for positive offsets. + 2004-05-06 Moritz Bunkus * mmg: Fix for compilation with wxWindows < 2.4.2. diff --git a/src/output/p_vorbis.cpp b/src/output/p_vorbis.cpp index ab486c12f..1c6a888e0 100644 --- a/src/output/p_vorbis.cpp +++ b/src/output/p_vorbis.cpp @@ -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); } }