[Scummvm-cvs-logs] SF.net SVN: scummvm: [32273] scummvm/trunk/engines/gob/coktelvideo.cpp

drmccoy at users.sourceforge.net drmccoy at users.sourceforge.net
Mon May 26 00:46:17 CEST 2008


Revision: 32273
          http://scummvm.svn.sourceforge.net/scummvm/?rev=32273&view=rev
Author:   drmccoy
Date:     2008-05-25 15:46:16 -0700 (Sun, 25 May 2008)

Log Message:
-----------
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.

Modified Paths:
--------------
    scummvm/trunk/engines/gob/coktelvideo.cpp

Modified: scummvm/trunk/engines/gob/coktelvideo.cpp
===================================================================
--- scummvm/trunk/engines/gob/coktelvideo.cpp	2008-05-25 17:06:10 UTC (rev 32272)
+++ scummvm/trunk/engines/gob/coktelvideo.cpp	2008-05-25 22:46:16 UTC (rev 32273)
@@ -1133,6 +1133,8 @@
 		} 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 @@
 				_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);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list