[FFmpeg-cvslog] Set Interplay C93 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 20:01:05 2011 +0100| [5be097c70389391e6eb1a2662a864e6ad34e3865] | committer: Carl Eugen Hoyos

Set Interplay C93 palette opaque.

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

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

diff --git a/libavcodec/c93.c b/libavcodec/c93.c
index 06ce416..ad2dc0a 100644
--- a/libavcodec/c93.c
+++ b/libavcodec/c93.c
@@ -152,7 +152,7 @@ static int decode_frame(AVCodecContext *avctx, void *data,
         uint32_t *palette = (uint32_t *) newpic->data[1];
         const uint8_t *palbuf = buf + buf_size - 768 - 1;
         for (i = 0; i < 256; i++) {
-            palette[i] = bytestream_get_be24(&palbuf);
+            palette[i] = 0xFF << 24 | bytestream_get_be24(&palbuf);
         }
     } else {
         if (oldpic->data[1])



More information about the ffmpeg-cvslog mailing list