[FFmpeg-cvslog] Make the palette in Wing Commander III mve files opaque.
Carl Eugen Hoyos
git at videolan.org
Sat Dec 24 12:55:14 CET 2011
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sat Dec 24 12:41:44 2011 +0100| [f2ed1158998019c38ef5a598b5a5c50aea60e072] | committer: Carl Eugen Hoyos
Make the palette in Wing Commander III mve files opaque.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f2ed1158998019c38ef5a598b5a5c50aea60e072
---
libavcodec/xan.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/xan.c b/libavcodec/xan.c
index 8518250..cfaca81 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;
More information about the ffmpeg-cvslog
mailing list