mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-04 11:45:18 +02:00
Attempt to replace 0 frame width with valid frame width.(sceMpegAvcCsc)
Fixes #12627.
This commit is contained in:
@@ -1939,6 +1939,14 @@ static u32 sceMpegAvcCsc(u32 mpeg, u32 sourceAddr, u32 rangeAddr, int frameWidth
|
||||
|
||||
DEBUG_LOG(ME, "sceMpegAvcCsc(%08x, %08x, %08x, %i, %08x)", mpeg, sourceAddr, rangeAddr, frameWidth, destAddr);
|
||||
|
||||
if (frameWidth == 0) {
|
||||
if (!ctx->defaultFrameWidth) {
|
||||
frameWidth = ctx->avc.avcDetailFrameWidth;
|
||||
} else {
|
||||
frameWidth = ctx->defaultFrameWidth;
|
||||
}
|
||||
}
|
||||
|
||||
int x = Memory::Read_U32(rangeAddr);
|
||||
int y = Memory::Read_U32(rangeAddr + 4);
|
||||
int width = Memory::Read_U32(rangeAddr + 8);
|
||||
|
||||
Reference in New Issue
Block a user