From 754dd7e8895543d71b4184c3180d39c0ed735f3a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 12 Jan 2013 21:38:19 +0100 Subject: [PATCH] dvdsubdec: use unsigned shifts to avoid shifting into the sign bit Signed-off-by: Michael Niedermayer --- libavcodec/dvdsubdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c index cc9e11bc92..700655d656 100644 --- a/libavcodec/dvdsubdec.c +++ b/libavcodec/dvdsubdec.c @@ -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; }