aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-12 20:08:56 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-12 20:08:56 +0100
commitc0be4ea0f2572fa70a07b2f068fa26551803d149 (patch)
tree98251775ef4bc355e53fbd457b45a930dc267512
parentf628134e776734462bec5c303b64a2385af814f0 (diff)
downloadffmpeg-c0be4ea0f2572fa70a07b2f068fa26551803d149.tar.gz
Set Electronic Arts TGV palette opaque.
-rw-r--r--libavcodec/eatgv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/eatgv.c b/libavcodec/eatgv.c
index 5559dc949f..91ae94c46a 100644
--- a/libavcodec/eatgv.c
+++ b/libavcodec/eatgv.c
@@ -278,7 +278,7 @@ static int tgv_decode_frame(AVCodecContext *avctx,
pal_count = AV_RL16(&buf[6]);
buf += 12;
for(i=0; i<pal_count && i<AVPALETTE_COUNT && buf_end - buf >= 3; i++) {
- s->palette[i] = AV_RB24(buf);
+ s->palette[i] = 0xFF << 24 | AV_RB24(buf);
buf += 3;
}
}