diff options
author | Torbjörn Andersson | 2015-08-06 07:34:37 +0200 |
---|---|---|
committer | Thierry Crozat | 2018-11-04 22:33:22 +0100 |
commit | e6abe39752c694ec0f873825a7465a00adc57ffe (patch) | |
tree | d5c2ed31febf26a80ec92fbb7bd8b1cbbb620bc6 | |
parent | 4cc71d42a283b5064ad30806aa92f20e3ea69198 (diff) | |
download | scummvm-rg350-e6abe39752c694ec0f873825a7465a00adc57ffe.tar.gz scummvm-rg350-e6abe39752c694ec0f873825a7465a00adc57ffe.tar.bz2 scummvm-rg350-e6abe39752c694ec0f873825a7465a00adc57ffe.zip |
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.
-rw-r--r-- | video/mpegps_decoder.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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; |