[FFmpeg-cvslog] Set Electronic Arts CMV palette opaque.
Carl Eugen Hoyos
git at videolan.org
Sat Nov 12 20:57:01 CET 2011
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sat Nov 12 20:08:23 2011 +0100| [f628134e776734462bec5c303b64a2385af814f0] | committer: Carl Eugen Hoyos
Set Electronic Arts CMV palette opaque.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f628134e776734462bec5c303b64a2385af814f0
---
libavcodec/eacmv.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/eacmv.c b/libavcodec/eacmv.c
index e05a7a9..8a8d6a9 100644
--- a/libavcodec/eacmv.c
+++ b/libavcodec/eacmv.c
@@ -141,7 +141,7 @@ static void cmv_process_header(CmvContext *s, const uint8_t *buf, const uint8_t
buf += 16;
for (i=pal_start; i<pal_start+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