forked from len0rd/rockbox
Another crossfade related crash possible fixed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6894 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4e6daf8f60
commit
da6ed62220
1 changed files with 1 additions and 1 deletions
|
|
@ -523,7 +523,7 @@ void pcm_flush_buffer(size_t length)
|
|||
while (length > 0) {
|
||||
copy_n = MIN(length, PCMBUF_SIZE - (unsigned)audiobuffer_pos);
|
||||
memcpy(&audiobuffer[audiobuffer_pos], buf, copy_n);
|
||||
audiobuffer_fillpos = length;
|
||||
audiobuffer_fillpos = copy_n;
|
||||
buf += copy_n;
|
||||
length -= copy_n;
|
||||
if (length > 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue