Commit 754dd7e8 authored by Michael Niedermayer's avatar Michael Niedermayer

dvdsubdec: use unsigned shifts to avoid shifting into the sign bit

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent c8737d34
......@@ -146,7 +146,7 @@ static void guess_palette(uint32_t *rgba_palette,
if(ctx->has_palette) {
for(i = 0; i < 4; i++)
rgba_palette[i] = (ctx->palette[colormap[i]] & 0x00ffffff)
| ((alpha[i] * 17) << 24);
| ((alpha[i] * 17U) << 24);
return;
}
......
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