From: Armin Novak Date: Mon, 20 Nov 2017 12:42:40 +0000 (+0100) Subject: Fix #4101: Rfx decode tile width. X-Git-Tag: 2.0.0-rc1~15^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b1d2053ad125117c434f890eef77e366bc5afafd;p=platform%2Fupstream%2Ffreerdp.git Fix #4101: Rfx decode tile width. --- diff --git a/libfreerdp/codec/rfx.c b/libfreerdp/codec/rfx.c index ce03a74..39b9782 100644 --- a/libfreerdp/codec/rfx.c +++ b/libfreerdp/codec/rfx.c @@ -1150,7 +1150,7 @@ BOOL rfx_process_message(RFX_CONTEXT* context, const BYTE* data, UINT32 length, REGION16 clippingRects; const RECTANGLE_16* updateRects; const DWORD formatSize = GetBytesPerPixel(context->pixel_format); - const UINT32 dstWidth = dstStride / formatSize; + const UINT32 dstWidth = dstStride / GetBytesPerPixel(dstFormat); region16_init(&clippingRects); for (i = 0; i < message->numRects; i++)