[Scummvm-cvs-logs] SF.net SVN: scummvm:[35577] scummvm/trunk/graphics/video/smk_player.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Sat Dec 27 19:01:19 CET 2008
Revision: 35577
http://scummvm.svn.sourceforge.net/scummvm/?rev=35577&view=rev
Author: thebluegr
Date: 2008-12-27 18:01:19 +0000 (Sat, 27 Dec 2008)
Log Message:
-----------
The BitStream class has a 2 byte lookahead. Hopefully, this will fix the invalid reads in the audio stream
Modified Paths:
--------------
scummvm/trunk/graphics/video/smk_player.cpp
Modified: scummvm/trunk/graphics/video/smk_player.cpp
===================================================================
--- scummvm/trunk/graphics/video/smk_player.cpp 2008-12-27 17:16:48 UTC (rev 35576)
+++ scummvm/trunk/graphics/video/smk_player.cpp 2008-12-27 18:01:19 UTC (rev 35577)
@@ -755,7 +755,7 @@
void SMKPlayer::queueCompressedBuffer(byte *buffer, uint32 bufferSize,
uint32 unpackedSize, int streamNum) {
- BitStream audioBS(buffer, bufferSize);
+ BitStream audioBS(buffer, bufferSize + 2);
bool dataPresent = audioBS.getBit();
if (!dataPresent)
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