mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
better mpeg fix
This commit is contained in:
parent
024a61e058
commit
9b63e457c8
1 changed files with 2 additions and 6 deletions
|
@ -1039,16 +1039,12 @@ void PostPutAction::run(MipsCall &call) {
|
|||
u32 sceMpegRingbufferPut(u32 ringbufferAddr, u32 numPackets, u32 available)
|
||||
{
|
||||
DEBUG_LOG(HLE, "sceMpegRingbufferPut(%08x, %i, %i)", ringbufferAddr, numPackets, available);
|
||||
if (numPackets < 0) {
|
||||
numPackets = std::min(numPackets, available);
|
||||
if (numPackets <= 0) {
|
||||
ERROR_LOG(HLE, "sub-zero number of packets put");
|
||||
return 0;
|
||||
}
|
||||
|
||||
numPackets = std::min(numPackets, available);
|
||||
if (numPackets <= 0) {
|
||||
ERROR_LOG(HLE, "zero or sub-zero number of packets put");
|
||||
return 0;
|
||||
}
|
||||
SceMpegRingBuffer ringbuffer;
|
||||
Memory::ReadStruct(ringbufferAddr, &ringbuffer);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue