[FFmpeg-cvslog] Set Westwood Studios VQA palette opaque.

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


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sat Nov 12 20:23:34 2011 +0100| [1d38c746fdcc9f604644a18fa776a63de1a9c27e] | committer: Carl Eugen Hoyos

Set Westwood Studios VQA palette opaque.

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

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

diff --git a/libavcodec/vqavideo.c b/libavcodec/vqavideo.c
index 8b57d79..5db8a22 100644
--- a/libavcodec/vqavideo.c
+++ b/libavcodec/vqavideo.c
@@ -402,7 +402,7 @@ static void vqa_decode_chunk(VqaContext *s)
             r = s->buf[cpl0_chunk++] * 4;
             g = s->buf[cpl0_chunk++] * 4;
             b = s->buf[cpl0_chunk++] * 4;
-            s->palette[i] = (r << 16) | (g << 8) | (b);
+            s->palette[i] = 0xFF << 24 | r << 16 | g << 8 | b;
         }
     }
 



More information about the ffmpeg-cvslog mailing list