aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mmvideo.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-12 20:13:58 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-12 20:13:58 +0100
commit3bf54ab5656beb8dfe7bd59f65dc7033fe662e5b (patch)
tree17dd1ea546f8ff45a9facfd860d763d6ee88cbe5 /libavcodec/mmvideo.c
parent64176bc1a3288b2d4fccc5b57961543f0585fe36 (diff)
downloadffmpeg-3bf54ab5656beb8dfe7bd59f65dc7033fe662e5b.tar.gz
Set American Laser Games MM palette opaque.
Diffstat (limited to 'libavcodec/mmvideo.c')
-rw-r--r--libavcodec/mmvideo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mmvideo.c b/libavcodec/mmvideo.c
index 183b2987d6..ff7d100792 100644
--- a/libavcodec/mmvideo.c
+++ b/libavcodec/mmvideo.c
@@ -69,7 +69,7 @@ static void mm_decode_pal(MmContext *s, const uint8_t *buf, const uint8_t *buf_e
int i;
buf += 4;
for (i=0; i<128 && buf+2<buf_end; i++) {
- s->palette[i] = AV_RB24(buf);
+ s->palette[i] = 0xFF << 24 | AV_RB24(buf);
s->palette[i+128] = s->palette[i]<<2;
buf += 3;
}