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:
9feff5d
)
libfreerdp-rfx: fix DWT mirror lifting.
author
Vic Lee
<llyzs@163.com>
Sat, 3 Sep 2011 15:45:21 +0000
(23:45 +0800)
committer
Vic Lee
<llyzs@163.com>
Sat, 3 Sep 2011 15:45:21 +0000
(23:45 +0800)
libfreerdp-rfx/rfx_dwt.c
patch
|
blob
|
history
diff --git
a/libfreerdp-rfx/rfx_dwt.c
b/libfreerdp-rfx/rfx_dwt.c
index
4489804
..
e870b18
100644
(file)
--- a/
libfreerdp-rfx/rfx_dwt.c
+++ b/
libfreerdp-rfx/rfx_dwt.c
@@
-133,7
+133,7
@@
static void rfx_dwt_2d_encode_block(sint16* buffer, sint16* dwt, int subband_wid
src = buffer + y * total_width + x;
/* H */
- *h = (src[total_width] - ((src[0] + src[n < subband_width - 1 ? 2 * total_width :
total_width
]) >> 1)) >> 1;
+ *h = (src[total_width] - ((src[0] + src[n < subband_width - 1 ? 2 * total_width :
0
]) >> 1)) >> 1;
/* L */
*l = src[0] + (n == 0 ? *h : (*(h - total_width) + *h) >> 1);