From e6abe39752c694ec0f873825a7465a00adc57ffe Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Thu, 6 Aug 2015 07:34:37 +0200 Subject: VIDEO: Skip DVD code. The sound plays, but audio/video sync is off Like most things that make this branch actually work, this comes from clone2727. --- video/mpegps_decoder.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'video') diff --git a/video/mpegps_decoder.cpp b/video/mpegps_decoder.cpp index 178a2a420a..0d91bbe04b 100644 --- a/video/mpegps_decoder.cpp +++ b/video/mpegps_decoder.cpp @@ -606,6 +606,11 @@ enum { }; void MPEGPSDecoder::AC3AudioTrack::decodeAC3Data(Common::SeekableReadStream *packet) { + // Skip the DVD code + packet->readUint32LE(); + if (packet->eos()) + return; + while (packet->pos() < packet->size()) { uint32 leftSize = packet->size() - packet->pos(); uint32 len = _inBufPtr - _inBuf; -- cgit v1.2.3