[FFmpeg-cvslog] Set KMVC 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:14 2011 +0100| [64176bc1a3288b2d4fccc5b57961543f0585fe36] | committer: Carl Eugen Hoyos

Set KMVC palette opaque.

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

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

diff --git a/libavcodec/kmvc.c b/libavcodec/kmvc.c
index 32d9a34..175b84c 100644
--- a/libavcodec/kmvc.c
+++ b/libavcodec/kmvc.c
@@ -251,7 +251,7 @@ static int decode_frame(AVCodecContext * avctx, void *data, int *data_size, AVPa
     if (buf[0] == 127) {
         buf += 3;
         for (i = 0; i < 127; i++) {
-            ctx->pal[i + (header & 0x81)] = AV_RB24(buf);
+            ctx->pal[i + (header & 0x81)] = 0xFF << 24 | AV_RB24(buf);
             buf += 4;
         }
         buf -= 127 * 4 + 3;



More information about the ffmpeg-cvslog mailing list