[FFmpeg-cvslog] Set American Laser Games MM 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:13:58 2011 +0100| [3bf54ab5656beb8dfe7bd59f65dc7033fe662e5b] | committer: Carl Eugen Hoyos

Set American Laser Games MM palette opaque.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3bf54ab5656beb8dfe7bd59f65dc7033fe662e5b
---

 libavcodec/mmvideo.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/mmvideo.c b/libavcodec/mmvideo.c
index 183b298..ff7d100 100644
--- a/libavcodec/mmvideo.c
+++ b/libavcodec/mmvideo.c
@@ -69,7 +69,7 @@ static void mm_decode_pal(MmContext *s, const uint8_t *buf, const uint8_t *buf_e
     int i;
     buf += 4;
     for (i=0; i<128 && buf+2<buf_end; i++) {
-        s->palette[i] = AV_RB24(buf);
+        s->palette[i] = 0xFF << 24 | AV_RB24(buf);
         s->palette[i+128] = s->palette[i]<<2;
         buf += 3;
     }



More information about the ffmpeg-cvslog mailing list