mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-04 19:53:48 +01:00
better mpeg fix
This commit is contained in:
1 parent
024a61e058
commit
9b63e457c8
1 file changed
+2
-6
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user