projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd9c07c
)
Fixed #6267: adjust write_pixel_16 endian handling
author
akallabeth
<akallabeth@posteo.net>
Mon, 8 Jun 2020 05:09:07 +0000
(07:09 +0200)
committer
akallabeth
<akallabeth@posteo.net>
Tue, 16 Jun 2020 07:09:11 +0000
(09:09 +0200)
(cherry picked from commit
51d3e07c8a4bca32bf82538075e4518b63e8ed4d
)
libfreerdp/codec/interleaved.c
patch
|
blob
|
history
diff --git
a/libfreerdp/codec/interleaved.c
b/libfreerdp/codec/interleaved.c
index
e9f92c7
..
b76fe1c
100644
(file)
--- 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