[FFmpeg-cvslog] Set FLI/FLC Animation palette opaque.

Carl Eugen Hoyos git at videolan.org
Sat Nov 12 20:57:02 CET 2011


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sat Nov 12 20:09:56 2011 +0100| [4e8078e6a8808b03bab29c4c4410422aceb380ab] | committer: Carl Eugen Hoyos

Set FLI/FLC Animation palette opaque.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4e8078e6a8808b03bab29c4c4410422aceb380ab
---

 libavcodec/flicvideo.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/flicvideo.c b/libavcodec/flicvideo.c
index 2374d54..e5367d0 100644
--- a/libavcodec/flicvideo.c
+++ b/libavcodec/flicvideo.c
@@ -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;



More information about the ffmpeg-cvslog mailing list