[FFmpeg-cvslog] Set Discworld II BMV palette opaque.

Carl Eugen Hoyos git at videolan.org
Sat Nov 12 20:57:00 CET 2011


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sat Nov 12 19:37:24 2011 +0100| [d6e14e24b007675ff1c45f6e3618845420633d10] | committer: Carl Eugen Hoyos

Set Discworld II BMV palette opaque.

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

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

diff --git a/libavcodec/bmv.c b/libavcodec/bmv.c
index 86d1e91..e98d599 100644
--- a/libavcodec/bmv.c
+++ b/libavcodec/bmv.c
@@ -219,7 +219,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac
             return AVERROR_INVALIDDATA;
         }
         for (i = 0; i < 256; i++)
-            c->pal[i] = bytestream_get_be24(&c->stream);
+            c->pal[i] = 0xFF << 24 | bytestream_get_be24(&c->stream);
     }
     if (type & BMV_SCROLL) {
         if (c->stream - pkt->data > pkt->size - 2) {



More information about the ffmpeg-cvslog mailing list