summaryrefslogtreecommitdiff
path: root/libavcodec/xan.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-12-24 12:41:44 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-12-24 12:41:44 +0100
commitf2ed1158998019c38ef5a598b5a5c50aea60e072 (patch)
tree29392f51774545602ea954fe2e0e92ae552339e3 /libavcodec/xan.c
parent0d59ae32c231b88c54c086a187fb60e5e0fb5102 (diff)
Make the palette in Wing Commander III mve files opaque.
Diffstat (limited to 'libavcodec/xan.c')
-rw-r--r--libavcodec/xan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/xan.c b/libavcodec/xan.c
index 8518250141..cfaca81e16 100644
--- a/libavcodec/xan.c
+++ b/libavcodec/xan.c
@@ -535,7 +535,7 @@ static int xan_decode_frame(AVCodecContext *avctx,
int g = gamma_lookup[*buf++];
int b = gamma_lookup[*buf++];
#endif
- *tmpptr++ = (r << 16) | (g << 8) | b;
+ *tmpptr++ = (0xFFU << 24) | (r << 16) | (g << 8) | b;
}
s->palettes_count++;
break;