aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2013-07-04 17:01:03 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2013-07-04 18:01:08 +0200
commitf32b8130f434fd33317c73f947514854ce466206 (patch)
tree4b6713490d45c25b636e53e2c0c83ee762cec8b2 /libavcodec
parent4a4c93cb3f2f564263f4b20446a7d500772e0d40 (diff)
downloadffmpeg-f32b8130f434fd33317c73f947514854ce466206.tar.gz
Fix opacity and increase colour dynamics of initial vmd palette.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/vmdav.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/vmdav.c b/libavcodec/vmdav.c
index 846d7c299e..fcb8a9b026 100644
--- a/libavcodec/vmdav.c
+++ b/libavcodec/vmdav.c
@@ -408,7 +408,8 @@ static av_cold int vmdvideo_decode_init(AVCodecContext *avctx)
r = raw_palette[palette_index++] * 4;
g = raw_palette[palette_index++] * 4;
b = raw_palette[palette_index++] * 4;
- palette32[i] = (r << 16) | (g << 8) | (b);
+ palette32[i] = 0xFFU << 24 | (r << 16) | (g << 8) | (b);
+ palette32[i] |= palette32[i] >> 6 & 0x30303;
}
avcodec_get_frame_defaults(&s->prev_frame);