summaryrefslogtreecommitdiff
path: root/libavcodec/flicvideo.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-13 14:50:01 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-13 14:50:01 +0100
commit105cf82acb7bac821c170d5181d20cd263fc39a5 (patch)
tree552bb8689061c75bc0884b619a128dc338f7b3e9 /libavcodec/flicvideo.c
parent2b656844f871464013d9629b7858a199ddc5678e (diff)
Increase FLI/FLC Animation palette dynamics for some samples.
Diffstat (limited to 'libavcodec/flicvideo.c')
-rw-r--r--libavcodec/flicvideo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/flicvideo.c b/libavcodec/flicvideo.c
index e5367d0c01..9111d17d82 100644
--- a/libavcodec/flicvideo.c
+++ b/libavcodec/flicvideo.c
@@ -239,6 +239,8 @@ static int flic_decode_frame_8BPP(AVCodecContext *avctx,
g = buf[stream_ptr++] << color_shift;
b = buf[stream_ptr++] << color_shift;
entry = 0xFF << 24 | r << 16 | g << 8 | b;
+ if (color_shift == 2)
+ entry |= entry >> 6 & 0x30303;
if (s->palette[palette_ptr] != entry)
s->new_palette = 1;
s->palette[palette_ptr++] = entry;