mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Check for a null pointer when writing video.
This commit is contained in:
parent
afccf2fc88
commit
74f3b81846
1 changed files with 2 additions and 1 deletions
|
@ -32,7 +32,8 @@ void MediaEngine::writeVideoImage(u32 bufferPtr, int frameWidth, int videoPixelM
|
|||
int bpp = modeBpp[videoPixelMode];
|
||||
|
||||
// fake image. To be improved.
|
||||
memset(Memory::GetPointer(bufferPtr), 0xDD, frameWidth * videoHeight_ * bpp);
|
||||
if (Memory::IsValidAddress(bufferPtr))
|
||||
Memory::Memset(bufferPtr, 0xDD, frameWidth * videoHeight_ * bpp);
|
||||
}
|
||||
|
||||
void MediaEngine::feedPacketData(u32 addr, int size)
|
||||
|
|
Loading…
Add table
Reference in a new issue