[codec,planar] fixed sign warnings

This commit is contained in:
Armin Novak 2023-07-28 08:17:41 +02:00 committed by akallabeth
parent 32b9eeb3c0
commit 7dc8a4a51d

View File

@ -257,7 +257,7 @@ static INLINE INT32 planar_decompress_plane_rle_only(const BYTE* pSrcData, UINT3
controlByte = *srcp;
srcp++;
if ((srcp - pSrcData) > SrcSize)
if ((srcp - pSrcData) > SrcSize * 1ll)
{
WLog_ERR(TAG, "error reading input buffer");
return -1;
@ -277,7 +277,7 @@ static INLINE INT32 planar_decompress_plane_rle_only(const BYTE* pSrcData, UINT3
cRawBytes = 0;
}
if (((dstp + (cRawBytes + nRunLength)) - currentScanline) > nWidth)
if (((dstp + (cRawBytes + nRunLength)) - currentScanline) > nWidth * 1ll)
{
WLog_ERR(TAG, "too many pixels in scanline");
return -1;
@ -394,7 +394,7 @@ static INLINE INT32 planar_decompress_plane_rle(const BYTE* pSrcData, UINT32 Src
controlByte = *srcp;
srcp++;
if ((srcp - pSrcData) > SrcSize)
if ((srcp - pSrcData) > SrcSize * 1ll)
{
WLog_ERR(TAG, "error reading input buffer");
return -1;
@ -414,7 +414,7 @@ static INLINE INT32 planar_decompress_plane_rle(const BYTE* pSrcData, UINT32 Src
cRawBytes = 0;
}
if (((dstp + (cRawBytes + nRunLength)) - currentScanline) > nWidth * 4)
if (((dstp + (cRawBytes + nRunLength)) - currentScanline) > nWidth * 4ll)
{
WLog_ERR(TAG, "too many pixels in scanline");
return -1;