From ff0ea751c5b5b41dc7bf35c5a6021452d0533fb8 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 13 Dec 2014 23:40:04 -0500 Subject: [PATCH] MediaEngine: Get rid of implicit boolean conversions to int --- Core/HW/MediaEngine.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Core/HW/MediaEngine.cpp b/Core/HW/MediaEngine.cpp index 5ee985ecb8..f1d7989583 100644 --- a/Core/HW/MediaEngine.cpp +++ b/Core/HW/MediaEngine.cpp @@ -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;