diff --git a/libfreerdp/primitives/prim_YUV.c b/libfreerdp/primitives/prim_YUV.c index 26b2aabf3..7320f33cf 100644 --- a/libfreerdp/primitives/prim_YUV.c +++ b/libfreerdp/primitives/prim_YUV.c @@ -429,9 +429,9 @@ static pstatus_t general_YUV444ToRGB_8u_P3AC4R( UINT32 x, y; UINT32 nWidth, nHeight; const DWORD formatSize = GetBytesPerPixel(DstFormat); + fkt_writeYUVPixel writeYUVPixel = getWriteFunction(DstFormat); nWidth = roi->width; nHeight = roi->height; - fkt_writeYUVPixel writeYUVPixel = getWriteFunction(DstFormat); for (y = 0; y < nHeight; y++) {