[FFmpeg-cvslog] Set ScummVM DXA 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:07:31 2011 +0100| [1567243e8fff8ecdc06c5a0e8db1eb45371ab400] | committer: Carl Eugen Hoyos

Set ScummVM DXA palette opaque.

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

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

diff --git a/libavcodec/dxa.c b/libavcodec/dxa.c
index b3bdae5..f32fdd3 100644
--- a/libavcodec/dxa.c
+++ b/libavcodec/dxa.c
@@ -209,7 +209,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac
             r = *buf++;
             g = *buf++;
             b = *buf++;
-            c->pal[i] = (r << 16) | (g << 8) | b;
+            c->pal[i] = 0xFF << 24 | r << 16 | g << 8 | b;
         }
         pc = 1;
         buf_size -= 768+4;



More information about the ffmpeg-cvslog mailing list