Commit d0dce15d authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos Committed by Vittorio Giovara

quickdraw: Make the palette opaque

Additional overflow fix by Michael Niedermayer <michaelni@gmx.at>.
Signed-off-by: 's avatarVittorio Giovara <vittorio.giovara@gmail.com>
parent da5c6a97
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment