[FFmpeg-cvslog] dvdsubdec: use unsigned shifts to avoid shifting into the sign bit
Michael Niedermayer
git at videolan.org
Sat Jan 12 21:45:42 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Jan 12 21:38:19 2013 +0100| [754dd7e8895543d71b4184c3180d39c0ed735f3a] | committer: Michael Niedermayer
dvdsubdec: use unsigned shifts to avoid shifting into the sign bit
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=754dd7e8895543d71b4184c3180d39c0ed735f3a
---
libavcodec/dvdsubdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c
index cc9e11b..700655d 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;
}
More information about the ffmpeg-cvslog
mailing list