Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-12 23:08:56 +0400
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-12 23:08:56 +0400
commitc0be4ea0f2572fa70a07b2f068fa26551803d149 (patch)
tree98251775ef4bc355e53fbd457b45a930dc267512 /libavcodec/eatgv.c
parentf628134e776734462bec5c303b64a2385af814f0 (diff)
Set Electronic Arts TGV palette opaque.
Diffstat (limited to 'libavcodec/eatgv.c')
-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;
}
}