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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-01-12 21:38:19 +01:00
parent c8737d348b
commit 754dd7e889
1 changed files with 1 additions and 1 deletions

View File

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