summaryrefslogtreecommitdiff
path: root/libavcodec/jvdec.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-12 20:56:07 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-12 20:56:07 +0100
commit3230c756f8891a35f4eb2b298a74185fe4816741 (patch)
treea3303c3de3c0ef53956564a396ba093bb2c095cc /libavcodec/jvdec.c
parent9780c33eca3e03f146970e25196b8363e9ef4790 (diff)
Increase Bitmap Brothers JV palette dynamics.
Approved-by: Peter Ross
Diffstat (limited to 'libavcodec/jvdec.c')
-rw-r--r--libavcodec/jvdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/jvdec.c b/libavcodec/jvdec.c
index faf4a106b7..7ceba1e001 100644
--- a/libavcodec/jvdec.c
+++ b/libavcodec/jvdec.c
@@ -172,7 +172,8 @@ static int decode_frame(AVCodecContext *avctx,
if (buf < buf_end) {
for (i = 0; i < AVPALETTE_COUNT && buf + 3 <= buf_end; i++) {
- s->palette[i] = (0xFF << 24) | AV_RB24(buf) << 2;
+ uint32_t pal = AV_RB24(buf);
+ s->palette[i] = 0xFF << 24 | pal << 2 | pal >> 4 & 0x30303;
buf += 3;
}
s->palette_has_changed = 1;