[FFmpeg-cvslog] Set Sierra VMD palette opaque.

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


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sat Nov 12 20:22:01 2011 +0100| [90f75f98041c40bdaef86d10d0ae88b2698a0bbd] | committer: Carl Eugen Hoyos

Set Sierra VMD palette opaque.

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

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

diff --git a/libavcodec/vmdav.c b/libavcodec/vmdav.c
index 718a9b9..be256e1 100644
--- a/libavcodec/vmdav.c
+++ b/libavcodec/vmdav.c
@@ -264,7 +264,7 @@ static void vmd_decode(VmdVideoContext *s)
             r = *p++ * 4;
             g = *p++ * 4;
             b = *p++ * 4;
-            palette32[i] = (r << 16) | (g << 8) | (b);
+            palette32[i] = 0xFF << 24 | r << 16 | g << 8 | b;
         }
     }
     if (p < p_end) {



More information about the ffmpeg-cvslog mailing list