Skip to content

Commit

Permalink
Merge pull request #5831 from raven02/patch-10
Browse files Browse the repository at this point in the history
Use ctx->mp3Channels instead of setting frame.channel in case of FF inco...
  • Loading branch information
hrydgard committed Apr 10, 2014
2 parents a402fc9 + c711f76 commit b262794
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Core/HLE/sceMp3.cpp
Expand Up @@ -243,11 +243,8 @@ int sceMp3Decode(u32 mp3, u32 outPcmPtr) {
fclose(file);
}
#endif
// 2 bytes per channel and we have frame.channels in mp3 source
// learn japanese v0.9 frame.channels = 0
if (frame.channels == 0)
frame.channels = 2;
ctx->mp3SumDecodedSamples += bytesdecoded / (2 * frame.channels);
// 2 bytes per channel and we use ctx->mp3Channels here
ctx->mp3SumDecodedSamples += bytesdecoded / (2 * ctx->mp3Channels);

return bytesdecoded;
}
Expand Down

0 comments on commit b262794

Please sign in to comment.