[FFmpeg-cvslog] Set Electronic Arts TGV palette opaque.
Carl Eugen Hoyos
git at videolan.org
Sat Nov 12 20:57:02 CET 2011
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sat Nov 12 20:08:56 2011 +0100| [c0be4ea0f2572fa70a07b2f068fa26551803d149] | committer: Carl Eugen Hoyos
Set Electronic Arts TGV palette opaque.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c0be4ea0f2572fa70a07b2f068fa26551803d149
---
libavcodec/eatgv.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/eatgv.c b/libavcodec/eatgv.c
index 5559dc9..91ae94c 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;
}
}
More information about the ffmpeg-cvslog
mailing list