codec: Fix compiler errors
authorMartin Fleisz <martin.fleisz@thincast.com>
Fri, 2 Dec 2016 10:13:20 +0000 (11:13 +0100)
committerMartin Fleisz <martin.fleisz@thincast.com>
Fri, 2 Dec 2016 10:13:20 +0000 (11:13 +0100)
libfreerdp/codec/clear.c

index 00fcd53..25f871a 100644 (file)
@@ -156,10 +156,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);
        }
 
@@ -494,7 +495,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)