[FFmpeg-cvslog] Fix Chronomaster DFA palette.

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:03:44 2011 +0100| [320f0f04a1052d63ee90e86472b77b51f75c255c] | committer: Carl Eugen Hoyos

Fix Chronomaster DFA palette.

The palette had a blue cast.

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

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

diff --git a/libavcodec/dfa.c b/libavcodec/dfa.c
index f222a59..eaa79be 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) & 0x333;
+                s->pal[i] |= (s->pal[i] >> 6) & 0x30303;
             }
             s->pic.palette_has_changed = 1;
         } else if (chunk_type <= 9) {



More information about the ffmpeg-cvslog mailing list