Honor the timecode offsets in MPEG program streams (VOB files). This fixes audio/video desynchronization. Fix for bug 295.

This commit is contained in:
Moritz Bunkus 2008-09-03 16:18:50 +00:00
parent 3f705cb7a6
commit 3713fd72e4
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2008-09-03 Moritz Bunkus <moritz@bunkus.org>
* mkvmerge: bug fix: mkvmerge honors the timecode offsets of all
streams in a MPEG program stream (e.g. VOB file) fixing
audio/video desynchronization. Fix for bug 295.
2008-08-30 Moritz Bunkus <moritz@bunkus.org>
* mkvmerge: Switched from the PCRE regular expression library to

View File

@ -1136,6 +1136,9 @@ mpeg_ps_reader_c::create_packetizer(int64_t id) {
} else
mxerror("mpeg_ps_reader: Should not have happened #2. %s", BUGMSG);
}
if (-1 != track->timecode_offset)
PTZR(track->ptzr)->ti.tcsync.displacement += track->timecode_offset;
}
void