Merge pull request #5751 from raven02/patch-39

Fix crash and wrong mp3 playback in Downstream Panic ULUS10322
This commit is contained in:
Henrik Rydgård committed 2014-03-29 04:05:50 -04:00
commit 7370061a9b
1 file changed
+2 -2
+2 -2
View File
@@ -577,8 +577,8 @@ int sceMp3NotifyAddStreamData(u32 mp3, int size) {
ctx->bufferAvailable += size;
ctx->bufferWrite += size;
if (ctx->bufferWrite == ctx->mp3BufSize)
ctx->bufferWrite = 0;
if (ctx->bufferWrite >= ctx->mp3BufSize)
ctx->bufferWrite %= ctx->mp3BufSize;
if (ctx->readPosition >= ctx->mp3StreamEnd && ctx->mp3LoopNum != 0) {
ctx->readPosition = ctx->mp3StreamStart;