[Scummvm-cvs-logs] SF.net SVN: scummvm: [25790] scummvm/trunk/sound/rate.cpp
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Thu Feb 22 17:36:04 CET 2007
Revision: 25790
http://scummvm.svn.sourceforge.net/scummvm/?rev=25790&view=rev
Author: fingolfin
Date: 2007-02-22 08:36:03 -0800 (Thu, 22 Feb 2007)
Log Message:
-----------
If an AudioStream returned a negative number in his readBuffer() method, then CopyRateConverter::flow could have got stuck in a (quasi) endless loop
Modified Paths:
--------------
scummvm/trunk/sound/rate.cpp
Modified: scummvm/trunk/sound/rate.cpp
===================================================================
--- scummvm/trunk/sound/rate.cpp 2007-02-22 14:30:12 UTC (rev 25789)
+++ scummvm/trunk/sound/rate.cpp 2007-02-22 16:36:03 UTC (rev 25790)
@@ -229,7 +229,7 @@
// Mix the data into the output buffer
ptr = _buffer;
- while (len--) {
+ while (len-- > 0) {
st_sample_t tmp0, tmp1;
tmp0 = tmp1 = *ptr++;
if (stereo) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list