mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Use ctx->mp3Channels instead of setting frame.channel in case of FF incomplete frame
This commit is contained in:
parent
a402fc907a
commit
c711f76eaa
1 changed files with 2 additions and 5 deletions
|
@ -243,11 +243,8 @@ int sceMp3Decode(u32 mp3, u32 outPcmPtr) {
|
||||||
fclose(file);
|
fclose(file);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
// 2 bytes per channel and we have frame.channels in mp3 source
|
// 2 bytes per channel and we use ctx->mp3Channels here
|
||||||
// learn japanese v0.9 frame.channels = 0
|
ctx->mp3SumDecodedSamples += bytesdecoded / (2 * ctx->mp3Channels);
|
||||||
if (frame.channels == 0)
|
|
||||||
frame.channels = 2;
|
|
||||||
ctx->mp3SumDecodedSamples += bytesdecoded / (2 * frame.channels);
|
|
||||||
|
|
||||||
return bytesdecoded;
|
return bytesdecoded;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue