[Scummvm-cvs-logs] CVS: scummvm/scumm sound.cpp,1.482,1.483
Eugene Sandulenko
sev at users.sourceforge.net
Tue Oct 18 22:18:15 CEST 2005
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6500
Modified Files:
sound.cpp
Log Message:
Fix crash in ADPCM decoder.
Index: sound.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/sound.cpp,v
retrieving revision 1.482
retrieving revision 1.483
diff -u -d -r1.482 -r1.483
--- sound.cpp 19 Oct 2005 04:59:18 -0000 1.482
+++ sound.cpp 19 Oct 2005 05:16:50 -0000 1.483
@@ -318,7 +318,7 @@
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
More information about the Scummvm-git-logs
mailing list