From 94a58bd18dfc8a7701222b4d3e028742841e3ec0 Mon Sep 17 00:00:00 2001 From: Martin Haimberger Date: Fri, 12 Jan 2018 00:08:56 -0800 Subject: [PATCH] YUV conversation: fixed luma frame creation in the conversation function general_RGBToAVC444YUVv2_ANY --- libfreerdp/primitives/prim_YUV.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libfreerdp/primitives/prim_YUV.c b/libfreerdp/primitives/prim_YUV.c index 28c3d92c4..01cc97e86 100644 --- a/libfreerdp/primitives/prim_YUV.c +++ b/libfreerdp/primitives/prim_YUV.c @@ -1320,8 +1320,8 @@ static INLINE pstatus_t general_RGBToAVC444YUVv2_ANY( for (y = 0; y < roi->height / 2; y++) { const BYTE* src = pSrc + (2 * y) * srcStep; - BYTE* b2 = pDst1[1] + 2 * y * dst1Step[1]; - BYTE* b3 = pDst1[2] + 2 * y * dst1Step[2]; + BYTE* b2 = pDst1[1] + y * dst1Step[1]; + BYTE* b3 = pDst1[2] + y * dst1Step[2]; for (x = 0; x < roi->width / 2; x++) {