quickdraw: Make the palette opaque

Additional overflow fix by Michael Niedermayer <michaelni@gmx.at>.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
This commit is contained in:
Carl Eugen Hoyos 2015-05-11 20:11:03 +01:00 committed by Vittorio Giovara
parent da5c6a97bb
commit d0dce15da3
1 changed files with 1 additions and 1 deletions

View 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;
}