diff options
author | Colin Snover | 2016-12-31 22:53:16 -0600 |
---|---|---|
committer | Colin Snover | 2017-03-30 19:46:27 -0500 |
commit | 0be9ace649a5f7cc70ec247a4997a4ed705a5720 (patch) | |
tree | f4791bc11e673d912a609e41468e65103f5bdef0 | |
parent | 477e31cea69f2ac4f2cf80549d6a773319868a61 (diff) | |
download | scummvm-rg350-0be9ace649a5f7cc70ec247a4997a4ed705a5720.tar.gz scummvm-rg350-0be9ace649a5f7cc70ec247a4997a4ed705a5720.tar.bz2 scummvm-rg350-0be9ace649a5f7cc70ec247a4997a4ed705a5720.zip |
SCI: Fix incorrect read of LB2/MG256 audio sizes
This happened to work previously because the size was not checked
for validity, and because the audio player calculates its own size
so this value was never actually used.
-rw-r--r-- | engines/sci/resource_audio.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/resource_audio.cpp b/engines/sci/resource_audio.cpp index c70a2a2322..30d01b9b90 100644 --- a/engines/sci/resource_audio.cpp +++ b/engines/sci/resource_audio.cpp @@ -373,7 +373,7 @@ int ResourceManager::readAudioMapSCI11(IntMapResourceSource *map) { byte headerSize = stream->readByte(); assert(headerSize == 11 || headerSize == 12); - stream->skip(5); + stream->skip(7); uint32 size = stream->readUint32LE() + headerSize + 2; assert(offset + size <= srcSize); |