mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 01:29:41 +01:00
Fix a couple bad bounds checks in VAG/Mpeg.
This commit is contained in:
1 parent
e3e5b24bf8
commit
3931f07852
2 files changed
+3
-3
No files matched your search
@@ -23,7 +23,7 @@ static const int modeBpp[4] = { 2, 2, 2, 4 };
|
||||
|
||||
void MediaEngine::writeVideoImage(u32 bufferPtr, int frameWidth, int videoPixelMode)
|
||||
{
|
||||
if (videoPixelMode > (int)(sizeof(modeBpp) / sizeof(modeBpp[0])) || videoPixelMode < 0)
|
||||
if (videoPixelMode >= (int)(sizeof(modeBpp) / sizeof(modeBpp[0])) || videoPixelMode < 0)
|
||||
{
|
||||
ERROR_LOG(ME, "Unexpected videoPixelMode %d, using 0 instead.", videoPixelMode);
|
||||
videoPixelMode = 0;
|
||||
|
||||
Reference in new issue
Block a user