mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-03 03:03:50 +01:00
Fix crash in mp3 reading.
This commit is contained in:
1 parent
0e1b6d8488
commit
780e252059
1 file changed
+1
@@ -223,6 +223,7 @@ int readFunc(void *opaque, uint8_t *buf, int buf_size) {
|
||||
if (ctx->bufferRead == ctx->mp3BufSize)
|
||||
ctx->bufferRead = 0;
|
||||
ctx->bufferAvailable -= to_read;
|
||||
buf_size -= to_read;
|
||||
res += to_read;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user