diff --git a/libfreerdp/codec/h264.c b/libfreerdp/codec/h264.c index e7ad350b4..6a36916c5 100644 --- a/libfreerdp/codec/h264.c +++ b/libfreerdp/codec/h264.c @@ -157,9 +157,9 @@ static INLINE BOOL diff_tile(const RECTANGLE_16* regionRect, BYTE* pYUVData[3], size = regionRect->right - regionRect->left; if (regionRect->right > iStride[0]) return FALSE; - if (regionRect->right / 2 > iStride[1]) + if (regionRect->right / 2u > iStride[1]) return FALSE; - if (regionRect->right / 2 > iStride[2]) + if (regionRect->right / 2u > iStride[2]) return FALSE; for (y = regionRect->top; y < regionRect->bottom; y++) diff --git a/libfreerdp/primitives/prim_YUV.c b/libfreerdp/primitives/prim_YUV.c index dc84f6127..e21d29caf 100644 --- a/libfreerdp/primitives/prim_YUV.c +++ b/libfreerdp/primitives/prim_YUV.c @@ -600,12 +600,12 @@ static INLINE BYTE RGB2Y(BYTE R, BYTE G, BYTE B) static INLINE BYTE RGB2U(BYTE R, BYTE G, BYTE B) { - return ((-29u * R - 99u * G + 128u * B) >> 8u) + 128u; + return ((-29 * R - 99 * G + 128 * B) >> 8) + 128; } static INLINE BYTE RGB2V(INT32 R, INT32 G, INT32 B) { - return ((128lu * R - 116lu * G - 12lu * B) >> 8lu) + 128lu; + return ((128 * R - 116 * G - 12 * B) >> 8) + 128; } static pstatus_t general_RGBToYUV444_8u_P3AC4R(const BYTE* pSrc, UINT32 SrcFormat, diff --git a/packaging/windows/preload.cmake b/packaging/windows/preload.cmake index e6bdf5a5e..b8a8ccf61 100644 --- a/packaging/windows/preload.cmake +++ b/packaging/windows/preload.cmake @@ -10,3 +10,6 @@ set (WITH_SERVER ON CACHE BOOL "Build with server support") set (WITH_SHADOW OFF CACHE BOOL "Do not build shadow server") set (WITH_PROXY ON CACHE BOOL "Build proxy server") set (WITH_PLATFORM_SERVER OFF CACHE BOOL "Do not build platform server") +set (WITH_INTERNAL_MD4 ON CACHE BOOL "nightly default") +set (WITH_INTERNAL_MD5 ON CACHE BOOL "nightly default") +set (WITH_INTERNAL_RC4 ON CACHE BOOL "nightly default")