From 9b74b24087580cf642ce43f072333074c0b3dabf Mon Sep 17 00:00:00 2001 From: Vic Lee Date: Sat, 3 Sep 2011 23:45:21 +0800 Subject: [PATCH] libfreerdp-rfx: fix DWT mirror lifting. --- libfreerdp-rfx/rfx_dwt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfreerdp-rfx/rfx_dwt.c b/libfreerdp-rfx/rfx_dwt.c index 448980494..e870b18a8 100644 --- 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);