Ticket #8312: vorbis.diff
File vorbis.diff, 619 bytes (added by , 21 years ago) |
---|
-
scummvm/sound/vorbis.cpp
diff -ur --exclude=CVS ScummVM/scummvm/sound/vorbis.cpp ScummVM+hack/scummvm/sound/vorbis.cpp
old new 229 229 int VorbisInputStream::readBuffer(int16 *buffer, const int numSamples) { 230 230 int samples = 0; 231 231 while (samples < numSamples && !eosIntern()) { 232 const int len = MIN(numSamples , samples +(int)(_bufferEnd - _pos));232 const int len = MIN(numSamples - samples, (int)(_bufferEnd - _pos)); 233 233 memcpy(buffer, _pos, len * 2); 234 234 buffer += len; 235 235 _pos += len;