mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 20:17:49 +00:00
If an AudioStream returned a negative number in his readBuffer() method, then CopyRateConverter::flow could have got stuck in a (quasi) endless loop
svn-id: r25790
This commit is contained in:
parent
f16ab37698
commit
c3254cde9e
@ -229,7 +229,7 @@ public:
|
||||
|
||||
// Mix the data into the output buffer
|
||||
ptr = _buffer;
|
||||
while (len--) {
|
||||
while (len-- > 0) {
|
||||
st_sample_t tmp0, tmp1;
|
||||
tmp0 = tmp1 = *ptr++;
|
||||
if (stereo) {
|
||||
|
Loading…
Reference in New Issue
Block a user