From 7faff04ec0470a6c2a253ace53ca2e97c4f4b673 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Wed, 16 Mar 2016 13:46:47 +0100 Subject: [PATCH] Assume the update rectangle is inclusive. --- libfreerdp/codec/h264.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libfreerdp/codec/h264.c b/libfreerdp/codec/h264.c index b2dd5d680..fe2d0a637 100644 --- a/libfreerdp/codec/h264.c +++ b/libfreerdp/codec/h264.c @@ -1597,8 +1597,8 @@ static BOOL avc444_process_rect(H264_CONTEXT* h264, if (!check_rect(h264, rect, nDstWidth, nDstHeight)) return FALSE; - width = rect->right - rect->left; - height = rect->bottom - rect->top; + width = rect->right - rect->left + 1; + height = rect->bottom - rect->top + 1; roi.width = width; roi.height = height;