mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
MediaEngine: Get rid of implicit boolean conversions to int
This commit is contained in:
parent
cb7e7643db
commit
ff0ea751c5
1 changed files with 6 additions and 6 deletions
|
@ -591,14 +591,14 @@ int MediaEngine::writeVideoImage(u32 bufferPtr, int frameWidth, int videoPixelMo
|
|||
if (!Memory::IsValidAddress(bufferPtr) || frameWidth > 2048) {
|
||||
// Clearly invalid values. Let's just not.
|
||||
ERROR_LOG_REPORT(ME, "Ignoring invalid video decode address %08x/%x", bufferPtr, frameWidth);
|
||||
return false;
|
||||
return 0;
|
||||
}
|
||||
|
||||
u8 *buffer = Memory::GetPointer(bufferPtr);
|
||||
|
||||
#ifdef USE_FFMPEG
|
||||
if ((!m_pFrame)||(!m_pFrameRGB))
|
||||
return false;
|
||||
if (!m_pFrame || !m_pFrameRGB)
|
||||
return 0;
|
||||
int videoImageSize = 0;
|
||||
// lock the image size
|
||||
int height = m_desHeight;
|
||||
|
@ -661,14 +661,14 @@ int MediaEngine::writeVideoImageWithRange(u32 bufferPtr, int frameWidth, int vid
|
|||
if (!Memory::IsValidAddress(bufferPtr) || frameWidth > 2048) {
|
||||
// Clearly invalid values. Let's just not.
|
||||
ERROR_LOG_REPORT(ME, "Ignoring invalid video decode address %08x/%x", bufferPtr, frameWidth);
|
||||
return false;
|
||||
return 0;
|
||||
}
|
||||
|
||||
u8 *buffer = Memory::GetPointer(bufferPtr);
|
||||
|
||||
#ifdef USE_FFMPEG
|
||||
if ((!m_pFrame)||(!m_pFrameRGB))
|
||||
return false;
|
||||
if (!m_pFrame || !m_pFrameRGB)
|
||||
return 0;
|
||||
int videoImageSize = 0;
|
||||
// lock the image size
|
||||
u8 *imgbuf = buffer;
|
||||
|
|
Loading…
Add table
Reference in a new issue