From f2ed1158998019c38ef5a598b5a5c50aea60e072 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Sat, 24 Dec 2011 12:41:44 +0100 Subject: Make the palette in Wing Commander III mve files opaque. --- libavcodec/xan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec') 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; -- cgit v1.2.3