mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-22 10:49:05 +02:00
Merge pull request #5751 from raven02/patch-39
Fix crash and wrong mp3 playback in Downstream Panic ULUS10322
This commit is contained in:
commit
7370061a9b
1 file changed
+2
-2
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user