quickdraw: Make the palette opaque
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Mon, 11 May 2015 19:11:03 +0000 (20:11 +0100)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 12 May 2015 14:28:31 +0000 (15:28 +0100)
Additional overflow fix by Michael Niedermayer <michaelni@gmx.at>.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
libavcodec/qdrw.c

index 1eb2a76..f7a4377 100644 (file)
@@ -61,7 +61,7 @@ static int parse_palette(AVCodecContext *avctx, GetByteContext *gbc,
         bytestream2_skip(gbc, 1);
         b = bytestream2_get_byte(gbc);
         bytestream2_skip(gbc, 1);
-        pal[idx] = (r << 16) | (g << 8) | b;
+        pal[idx] = (0xFFU << 24) | (r << 16) | (g << 8) | b;
     }
     return 0;
 }