[FFmpeg-cvslog] Set Delphine Software International CIN 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:06:35 2011 +0100| [dcbd18c61540329c51a015bb662aab891ddae61f] | committer: Carl Eugen Hoyos

Set Delphine Software International CIN palette opaque.

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

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

diff --git a/libavcodec/dsicinav.c b/libavcodec/dsicinav.c
index 53d4f90..80c9677 100644
--- a/libavcodec/dsicinav.c
+++ b/libavcodec/dsicinav.c
@@ -223,7 +223,7 @@ static int cinvideo_decode_frame(AVCodecContext *avctx,
         if (palette_colors_count > 256)
             return AVERROR_INVALIDDATA;
         for (i = 0; i < palette_colors_count; ++i) {
-            cin->palette[i] = bytestream_get_le24(&buf);
+            cin->palette[i] = 0xFF << 24 | bytestream_get_le24(&buf);
             bitmap_frame_size -= 3;
         }
     } else {



More information about the ffmpeg-cvslog mailing list