aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dfa.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-12 20:03:44 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-12 20:03:44 +0100
commit320f0f04a1052d63ee90e86472b77b51f75c255c (patch)
tree78e3125b7e805f792434ec5fb60f4f81a3167405 /libavcodec/dfa.c
parent973f3d3e0eef351de730c9cff017ab8c20bf8bd5 (diff)
downloadffmpeg-320f0f04a1052d63ee90e86472b77b51f75c255c.tar.gz
Fix Chronomaster DFA palette.
The palette had a blue cast.
Diffstat (limited to 'libavcodec/dfa.c')
-rw-r--r--libavcodec/dfa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dfa.c b/libavcodec/dfa.c
index f222a59459..eaa79be49a 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) {