aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2008-12-27 18:01:19 +0000
committerFilippos Karapetis2008-12-27 18:01:19 +0000
commitdb1a4b478940677c5a8d9128a283b74ad1c49104 (patch)
treed5fc9a60fd8231513af7d13913077a5097a59095
parent2fec0a30882c057a3925c739fca0f1125daea91d (diff)
downloadscummvm-rg350-db1a4b478940677c5a8d9128a283b74ad1c49104.tar.gz
scummvm-rg350-db1a4b478940677c5a8d9128a283b74ad1c49104.tar.bz2
scummvm-rg350-db1a4b478940677c5a8d9128a283b74ad1c49104.zip
The BitStream class has a 2 byte lookahead. Hopefully, this will fix the invalid reads in the audio stream
svn-id: r35577
-rw-r--r--graphics/video/smk_player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/video/smk_player.cpp b/graphics/video/smk_player.cpp
index b0e79792d8..298e9c6598 100644
--- a/graphics/video/smk_player.cpp
+++ b/graphics/video/smk_player.cpp
@@ -755,7 +755,7 @@ bool SMKPlayer::decodeNextFrame() {
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)