mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
dvdsubdec: use unsigned shifts to avoid shifting into the sign bit
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
c8737d348b
commit
754dd7e889
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user