diff options
-rw-r--r-- | xbmc/guilib/Texture.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xbmc/guilib/Texture.cpp b/xbmc/guilib/Texture.cpp index bb33dd4fca..f8557a5b30 100644 --- a/xbmc/guilib/Texture.cpp +++ b/xbmc/guilib/Texture.cpp @@ -268,8 +268,8 @@ bool CBaseTexture::LoadFromFile(const CStdString& texturePath, unsigned int maxW if(omx_image.GetDecodedData()) { - int size = ( (GetPitch() * GetRows() ) < omx_image.GetDecodedSize() ) ? - GetPitch() * GetRows() : omx_image.GetDecodedSize(); + int size = ( ( GetPitch() * GetRows() ) > omx_image.GetDecodedSize() ) ? + omx_image.GetDecodedSize() : ( GetPitch() * GetRows() ); memcpy(m_pixels, (unsigned char *)omx_image.GetDecodedData(), size); } |