Set FLI/FLC Animation palette opaque.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Sat, 12 Nov 2011 19:09:56 +0000 (20:09 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Sat, 12 Nov 2011 19:09:56 +0000 (20:09 +0100)
libavcodec/flicvideo.c

index 2374d54..e5367d0 100644 (file)
@@ -238,7 +238,7 @@ static int flic_decode_frame_8BPP(AVCodecContext *avctx,
                     r = buf[stream_ptr++] << color_shift;
                     g = buf[stream_ptr++] << color_shift;
                     b = buf[stream_ptr++] << color_shift;
-                    entry = (r << 16) | (g << 8) | b;
+                    entry = 0xFF << 24 | r << 16 | g << 8 | b;
                     if (s->palette[palette_ptr] != entry)
                         s->new_palette = 1;
                     s->palette[palette_ptr++] = entry;