aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--video/mpegps_decoder.cpp5
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;