diff --git a/libfreerdp/codec/clear.c b/libfreerdp/codec/clear.c index b1fa4ecba..143319804 100644 --- a/libfreerdp/codec/clear.c +++ b/libfreerdp/codec/clear.c @@ -141,10 +141,11 @@ static BOOL clear_decompress_subcode_rlex(wStream* s, for (i = 0; i < paletteCount; i++) { BYTE r, g, b; + UINT32 color; Stream_Read_UINT8(s, b); Stream_Read_UINT8(s, g); Stream_Read_UINT8(s, r); - UINT32 color = GetColor(SrcFormat, r, g, b, 0xFF); + color = GetColor(SrcFormat, r, g, b, 0xFF); palette[i] = ConvertColor(color, SrcFormat, DstFormat, NULL); } @@ -397,7 +398,7 @@ static BOOL clear_decompress_subcodecs_data(CLEAR_CONTEXT* clear, wStream* s, { case 0: /* Uncompressed */ { - UINT32 nSrcStep = width * GetBytesPerPixel(PIXEL_FORMAT_BGR24);; + UINT32 nSrcStep = width * GetBytesPerPixel(PIXEL_FORMAT_BGR24); UINT32 nSrcSize = nSrcStep * height; if (bitmapDataByteCount != nSrcSize) diff --git a/libfreerdp/codec/nsc.c b/libfreerdp/codec/nsc.c index 14e605db5..fb13a1511 100644 --- a/libfreerdp/codec/nsc.c +++ b/libfreerdp/codec/nsc.c @@ -47,7 +47,7 @@ static void nsc_decode(NSC_CONTEXT* context) UINT16 x; UINT16 y; UINT16 rw = ROUND_UP_TO(context->width, 8); - BYTE shift = context->ColorLossLevel - 1; /* colorloss recovery + YCoCg shift */; + BYTE shift = context->ColorLossLevel - 1; /* colorloss recovery + YCoCg shift */ BYTE* bmpdata = context->BitmapData; for (y = 0; y < context->height; y++) @@ -55,7 +55,7 @@ static void nsc_decode(NSC_CONTEXT* context) const BYTE* yplane; const BYTE* coplane; const BYTE* cgplane; - const BYTE* aplane = context->priv->PlaneBuffers[3] + y * context->width; /* A */; + const BYTE* aplane = context->priv->PlaneBuffers[3] + y * context->width; /* A */ if (context->ChromaSubsamplingLevel) {