X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=libavcodec%2Fgifdec.c;h=83cb36831b02bf38c02fed96d818549517543daa;hb=f2193569a548fde059eb877661ec8a224c9fae1f;hp=7a22fa702f2d19c1357a584bac2306e49d6b8be1;hpb=6faf0a21e18f314c48a886864145abe715be6572;p=ffmpeg diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c index 7a22fa702f2..83cb36831b0 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;