libfreerdp-codec: fix incorrect pixel increment in freerdp_image24_copy
authorMarc-André Moreau <marcandre.moreau@gmail.com>
Thu, 23 Oct 2014 19:50:24 +0000 (15:50 -0400)
committerMarc-André Moreau <marcandre.moreau@gmail.com>
Thu, 23 Oct 2014 19:50:24 +0000 (15:50 -0400)
libfreerdp/codec/color.c

index 09c1038..49e57c0 100644 (file)
@@ -2719,7 +2719,7 @@ int freerdp_image24_copy(BYTE* pDstData, DWORD DstFormat, int nDstStep, int nXDs
                                                        pDstPixel[2] = pSrcPixel[0];
                                                        pDstPixel[3] = 0xFF;
 
-                                                       pSrcPixel += 4;
+                                                       pSrcPixel += 3;
                                                        pDstPixel += 4;
                                                }
 
@@ -2741,7 +2741,7 @@ int freerdp_image24_copy(BYTE* pDstData, DWORD DstFormat, int nDstStep, int nXDs
                                                        pDstPixel[2] = pSrcPixel[0];
                                                        pDstPixel[3] = 0xFF;
 
-                                                       pSrcPixel += 4;
+                                                       pSrcPixel += 3;
                                                        pDstPixel += 4;
                                                }