[FFmpeg-cvslog] Set Chronomaster DFA 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:05:35 2011 +0100| [e18f70c2d132c239899440cf01a14db23a638c59] | committer: Carl Eugen Hoyos

Set Chronomaster DFA palette opaque.

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

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

diff --git a/libavcodec/dfa.c b/libavcodec/dfa.c
index eaa79be..bce6260 100644
--- a/libavcodec/dfa.c
+++ b/libavcodec/dfa.c
@@ -339,7 +339,7 @@ static int dfa_decode_frame(AVCodecContext *avctx,
             tmp_buf = buf;
             for (i = 0; i < pal_elems; i++) {
                 s->pal[i] = bytestream_get_be24(&tmp_buf) << 2;
-                s->pal[i] |= (s->pal[i] >> 6) & 0x30303;
+                s->pal[i] |= 0xFF << 24 | (s->pal[i] >> 6) & 0x30303;
             }
             s->pic.palette_has_changed = 1;
         } else if (chunk_type <= 9) {



More information about the ffmpeg-cvslog mailing list