diff options
author | Mans Rullgard <mans@mansr.com> | 2011-11-25 17:51:10 +0000 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-11-26 11:38:40 +0000 |
commit | 3bd1162a52cafc1bb758b25636e857c94fd3999c (patch) | |
tree | 98509ac036b7d1ee6771380005d0399ed458c8b0 /libavcodec/gifdec.c | |
parent | 7fb55e0b02385ae0905af73a52c3db87d08777da (diff) | |
download | ffmpeg-3bd1162a52cafc1bb758b25636e857c94fd3999c.tar.gz |
gif: fix invalid signed shifts
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/gifdec.c')
-rw-r--r-- | libavcodec/gifdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c index bf40da183d..9bac254c59 100644 --- a/libavcodec/gifdec.c +++ b/libavcodec/gifdec.c @@ -96,11 +96,11 @@ static int gif_read_image(GifState *s) n = (1 << bits_per_pixel); spal = palette; for(i = 0; i < n; i++) { - s->image_palette[i] = (0xff << 24) | AV_RB24(spal); + s->image_palette[i] = (0xffu << 24) | AV_RB24(spal); spal += 3; } for(; i < 256; i++) - s->image_palette[i] = (0xff << 24); + s->image_palette[i] = (0xffu << 24); /* handle transparency */ if (s->transparent_color_index >= 0) s->image_palette[s->transparent_color_index] = 0; |