summaryrefslogtreecommitdiffstats
path: root/libavcodec/yop.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-12 20:49:53 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-12 20:49:53 +0100
commit9780c33eca3e03f146970e25196b8363e9ef4790 (patch)
treeaa1d7ea1e09bdfe13192e6fc2e0c9bc8010c8172 /libavcodec/yop.c
parentac0042f55f058a228a726f8e393884115f1daa99 (diff)
downloadffmpeg-streaming-9780c33eca3e03f146970e25196b8363e9ef4790.zip
ffmpeg-streaming-9780c33eca3e03f146970e25196b8363e9ef4790.tar.gz
Increase Psygnosis YOP palette dynamics.
Diffstat (limited to 'libavcodec/yop.c')
-rw-r--r--libavcodec/yop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/yop.c b/libavcodec/yop.c
index 597fe89..e5333db 100644
--- a/libavcodec/yop.c
+++ b/libavcodec/yop.c
@@ -221,7 +221,8 @@ static int yop_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
palette[i + firstcolor] = (s->srcptr[0] << 18) |
(s->srcptr[1] << 10) |
(s->srcptr[2] << 2);
- palette[i + firstcolor] |= 0xFF << 24;
+ palette[i + firstcolor] |= 0xFF << 24 |
+ (palette[i + firstcolor] >> 6) & 0x30303;
}
s->frame.palette_has_changed = 1;
OpenPOWER on IntegriCloud