Fix crash in mp3 reading.

This commit is contained in:
Unknown W. Brackets committed 2013-05-12 11:41:51 -07:00
1 parent 0e1b6d8488
commit 780e252059
1 file changed
+1
+1
View File
@@ -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;
}