YUV conversation: fixed luma frame creation
authorMartin Haimberger <martin.haimberger@thincast.com>
Fri, 12 Jan 2018 08:08:56 +0000 (00:08 -0800)
committerMartin Haimberger <martin.haimberger@thincast.com>
Fri, 12 Jan 2018 08:16:45 +0000 (00:16 -0800)
in the conversation function general_RGBToAVC444YUVv2_ANY

libfreerdp/primitives/prim_YUV.c

index 28c3d92..01cc97e 100644 (file)
@@ -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++)
                        {