[FFmpeg-cvslog] Set RL2 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:15:56 2011 +0100| [c99cd3e2e2b9ae56472c82e1fb12e9d104d36904] | committer: Carl Eugen Hoyos

Set RL2 palette opaque.

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

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

diff --git a/libavcodec/rl2.c b/libavcodec/rl2.c
index 7d1cf16..0090bf3 100644
--- a/libavcodec/rl2.c
+++ b/libavcodec/rl2.c
@@ -152,7 +152,7 @@ static av_cold int rl2_decode_init(AVCodecContext *avctx)
 
     /** initialize palette */
     for(i=0;i<AVPALETTE_COUNT;i++)
-        s->palette[i] = AV_RB24(&avctx->extradata[6 + i * 3]);
+        s->palette[i] = 0xFF << 24 | AV_RB24(&avctx->extradata[6 + i * 3]);
 
     /** decode background frame if present */
     back_size = avctx->extradata_size - EXTRADATA1_SIZE;



More information about the ffmpeg-cvslog mailing list