Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FreeRDP/FreeRDP-old.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVic Lee <llyzs@163.com>2011-06-25 11:23:55 +0400
committerVic Lee <llyzs@163.com>2011-06-25 11:23:55 +0400
commit0cc43444c1817861f480b9ce030da7ef17104762 (patch)
tree5336c46e0bf4f17a72209e84c1d8d6df1d04484b
parentf8830521b86ceb3b5f51de8b54af0b3874337a30 (diff)
libfreerdp-rfx: fix wrong dwt boundary value.
-rw-r--r--libfreerdp-rfx/rfx_dwt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libfreerdp-rfx/rfx_dwt.c b/libfreerdp-rfx/rfx_dwt.c
index 5fc5f64..7f80975 100644
--- a/libfreerdp-rfx/rfx_dwt.c
+++ b/libfreerdp-rfx/rfx_dwt.c
@@ -136,7 +136,7 @@ rfx_dwt_2d_encode_block(sint16 * buffer, sint16 * dwt, int subband_width)
src = buffer + y * total_width + x;
/* H */
- *h = (src[total_width] - ((src[0] + src[n < subband_width - 1 ? 2 * total_width : 0]) >> 1)) >> 1;
+ *h = (src[total_width] - ((src[0] + src[n < subband_width - 1 ? 2 * total_width : total_width]) >> 1)) >> 1;
/* L */
*l = src[0] + (n == 0 ? *h : (*(h - total_width) + *h) >> 1);