diff options
Diffstat (limited to 'net-misc/freerdp')
-rw-r--r-- | net-misc/freerdp/files/2.1.1-write_pixel_16-endian.patch | 23 | ||||
-rw-r--r-- | net-misc/freerdp/freerdp-2.1.1-r1.ebuild (renamed from net-misc/freerdp/freerdp-2.1.1.ebuild) | 4 |
2 files changed, 27 insertions, 0 deletions
diff --git a/net-misc/freerdp/files/2.1.1-write_pixel_16-endian.patch b/net-misc/freerdp/files/2.1.1-write_pixel_16-endian.patch new file mode 100644 index 000000000000..f5d4d7638ad7 --- /dev/null +++ b/net-misc/freerdp/files/2.1.1-write_pixel_16-endian.patch @@ -0,0 +1,23 @@ +From 733026dada313cf345c3e3664cfe5790519e9fae Mon Sep 17 00:00:00 2001 +From: akallabeth <akallabeth@posteo.net> +Date: Mon, 8 Jun 2020 07:09:07 +0200 +Subject: [PATCH] Fixed #6267: adjust write_pixel_16 endian handling + +--- + libfreerdp/codec/interleaved.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/libfreerdp/codec/interleaved.c b/libfreerdp/codec/interleaved.c +index e9f92c7009..b76fe1ca3c 100644 +--- a/libfreerdp/codec/interleaved.c ++++ b/libfreerdp/codec/interleaved.c +@@ -232,7 +232,8 @@ static INLINE void write_pixel_24(BYTE* _buf, UINT32 _pix) + + static INLINE void write_pixel_16(BYTE* _buf, UINT16 _pix) + { +- *(UINT16*)_buf = _pix; ++ _buf[0] = _pix & 0xFF; ++ _buf[1] = (_pix >> 8) & 0xFF; + } + + #undef DESTWRITEPIXEL diff --git a/net-misc/freerdp/freerdp-2.1.1.ebuild b/net-misc/freerdp/freerdp-2.1.1-r1.ebuild index d52fe4d1a0a8..b9405ff047eb 100644 --- a/net-misc/freerdp/freerdp-2.1.1.ebuild +++ b/net-misc/freerdp/freerdp-2.1.1-r1.ebuild @@ -88,6 +88,10 @@ BDEPEND=" ) ) " +PATCHES=( + "${FILESDIR}/2.1.1-write_pixel_16-endian.patch" +) + src_configure() { local mycmakeargs=( -DBUILD_TESTING=$(usex test ON OFF) |