diff options
author | Eugene Sandulenko | 2005-10-19 05:16:50 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2005-10-19 05:16:50 +0000 |
commit | 12a66937cc582d350ad62cc52a4aa224df00f42c (patch) | |
tree | 76b38aaf4a784efd01c910951b85956fcfe1b8c5 /scumm | |
parent | 4306c9344cd00edff5b9a04152d68a1a7b0862aa (diff) | |
download | scummvm-rg350-12a66937cc582d350ad62cc52a4aa224df00f42c.tar.gz scummvm-rg350-12a66937cc582d350ad62cc52a4aa224df00f42c.tar.bz2 scummvm-rg350-12a66937cc582d350ad62cc52a4aa224df00f42c.zip |
Fix crash in ADPCM decoder.
svn-id: r19167
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/sound.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp index dbbb0f11c9..5126db41d8 100644 --- a/scumm/sound.cpp +++ b/scumm/sound.cpp @@ -318,7 +318,7 @@ void Sound::playSound(int soundID, int heOffset, int heChannel, int heFlags) { if (type == 17) { AudioStream *voxStream = new ADPCMInputStream(&stream, size, kADPCMIma, (flags & Audio::Mixer::FLAG_STEREO) ? 2 : 1); - sound = (char *)malloc(size * 2); + sound = (char *)malloc(size * 4); size = voxStream->readBuffer((int16*)sound, size * 2); } else { // Allocate a sound buffer, copy the data into it, and play |