From db1a4b478940677c5a8d9128a283b74ad1c49104 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sat, 27 Dec 2008 18:01:19 +0000 Subject: The BitStream class has a 2 byte lookahead. Hopefully, this will fix the invalid reads in the audio stream svn-id: r35577 --- graphics/video/smk_player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'graphics/video') 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) -- cgit v1.2.3