aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorSven Hesse2008-05-25 22:46:16 +0000
committerSven Hesse2008-05-25 22:46:16 +0000
commit1fcf93875ec583c23232088cac3ad15c254bfccc (patch)
treebf2430f48ce95731b840699736ee1af0bb88e2c5 /engines
parent1509a17d3ac30e5ca33c7ee88d7a20200d25debf (diff)
downloadscummvm-rg350-1fcf93875ec583c23232088cac3ad15c254bfccc.tar.gz
scummvm-rg350-1fcf93875ec583c23232088cac3ad15c254bfccc.tar.bz2
scummvm-rg350-1fcf93875ec583c23232088cac3ad15c254bfccc.zip
Fixed the small static sound in Woodruff's intro video.
Interestingly, this does _not_ fix the audio lag, so I was apparently wrong and it's another issue. *g* This does however fix the glitches in the Last Dynasty intro. svn-id: r32273
Diffstat (limited to 'engines')
-rw-r--r--engines/gob/coktelvideo.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/gob/coktelvideo.cpp b/engines/gob/coktelvideo.cpp
index 729927eb94..ef89bc2c19 100644
--- a/engines/gob/coktelvideo.cpp
+++ b/engines/gob/coktelvideo.cpp
@@ -1133,6 +1133,8 @@ CoktelVideo::State Vmd::processFrame(uint16 frame) {
} else if (part.type == kPartTypeVideo) {
state.flags &= ~kStateNoVideoData;
+ uint32 size = part.size;
+
// New palette
if (part.flags & 2) {
uint8 index = _stream->readByte();
@@ -1142,9 +1144,12 @@ CoktelVideo::State Vmd::processFrame(uint16 frame) {
_stream->skip((255 - count) * 3);
state.flags |= kStatePalette;
+
+ size -= (768 + 2);
}
- _stream->read(_frameData, part.size);
+ _stream->read(_frameData, size);
+
if (renderFrame(part.left, part.top, part.right, part.bottom)) {
// Rendering succeeded, merging areas
state.left = MIN(state.left, part.left);