Browse Source

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.2
Michael Niedermayer 12 years ago
parent
commit
754dd7e889
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/dvdsubdec.c

+ 1
- 1
libavcodec/dvdsubdec.c View File

@@ -146,7 +146,7 @@ static void guess_palette(uint32_t *rgba_palette,
if(ctx->has_palette) { if(ctx->has_palette) {
for(i = 0; i < 4; i++) for(i = 0; i < 4; i++)
rgba_palette[i] = (ctx->palette[colormap[i]] & 0x00ffffff) rgba_palette[i] = (ctx->palette[colormap[i]] & 0x00ffffff)
| ((alpha[i] * 17) << 24);
| ((alpha[i] * 17U) << 24);
return; return;
} }




Loading…
Cancel
Save