diff options
author | D G Turner | 2012-04-10 06:20:05 +0100 |
---|---|---|
committer | D G Turner | 2012-04-13 07:37:26 +0100 |
commit | 845812f12e8e801ec05199298fb9400de2a80039 (patch) | |
tree | 65be45c94cd64f0f0f94e67dd6b38b74557aa8f2 /audio/decoders | |
parent | 220f60fd6026ce176c7ec62d200811f62f22d0ff (diff) | |
download | scummvm-rg350-845812f12e8e801ec05199298fb9400de2a80039.tar.gz scummvm-rg350-845812f12e8e801ec05199298fb9400de2a80039.tar.bz2 scummvm-rg350-845812f12e8e801ec05199298fb9400de2a80039.zip |
AUDIO: Fix skipping in QDM2 BitStream usage.
getBits(n) would cause a runtime error if n is greater than 32,
but using getBits() to skip is no longer necessary as the newer
BitStream class has a skip method, which is used instead.
Diffstat (limited to 'audio/decoders')
-rw-r--r-- | audio/decoders/qdm2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/decoders/qdm2.cpp b/audio/decoders/qdm2.cpp index 749a0d64dd..7faa1df155 100644 --- a/audio/decoders/qdm2.cpp +++ b/audio/decoders/qdm2.cpp @@ -2636,7 +2636,7 @@ void QDM2Stream::qdm2_decode_super_block(void) { delete d; d = new Common::MemoryReadStream(header.data, header.size*8); gb = new Common::BitStream8MSB(d); - gb->getBits(next_index*8); // Skipping bits.. + gb->skip(next_index*8); if (next_index >= header.size) break; |