[FFmpeg-cvslog] Set Beam Software VB 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:21:07 2011 +0100| [e9a2ffa117f560c0899c7a3bb373e908ae03d285] | committer: Carl Eugen Hoyos

Set Beam Software VB palette opaque.

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

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

diff --git a/libavcodec/vb.c b/libavcodec/vb.c
index 956d656..d66c47b 100644
--- a/libavcodec/vb.c
+++ b/libavcodec/vb.c
@@ -73,7 +73,7 @@ static void vb_decode_palette(VBDecContext *c, int data_size)
         return;
     }
     for(i = start; i <= start + size; i++)
-        c->pal[i] = bytestream_get_be24(&c->stream);
+        c->pal[i] = 0xFF << 24 | bytestream_get_be24(&c->stream);
 }
 
 static inline int check_pixel(uint8_t *buf, uint8_t *start, uint8_t *end)



More information about the ffmpeg-cvslog mailing list