diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-11-13 14:52:21 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-11-13 14:52:21 +0100 |
commit | a95906af57593dd0f4754b6e2e1d777bbb382f37 (patch) | |
tree | db3ecdfc1ed760696793b7b30887dd2f4c90947a | |
parent | 105cf82acb7bac821c170d5181d20cd263fc39a5 (diff) | |
download | ffmpeg-a95906af57593dd0f4754b6e2e1d777bbb382f37.tar.gz |
Increase Pictor/PC Paint palette dynamics.
-rw-r--r-- | libavcodec/pictordec.c | 2 | ||||
-rw-r--r-- | tests/ref/fate/pictor | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/pictordec.c b/libavcodec/pictordec.c index ae6e488161..436b96d11d 100644 --- a/libavcodec/pictordec.c +++ b/libavcodec/pictordec.c @@ -177,7 +177,7 @@ static int decode_frame(AVCodecContext *avctx, npal = FFMIN(esize / 3, 256); for (i = 0; i < npal; i++) { palette[i] = AV_RB24(buf + i*3) << 2; - palette[i] |= 0xFF << 24; + palette[i] |= 0xFF << 24 | palette[i] >> 6 & 0x30303; } } else { if (bpp == 1) { diff --git a/tests/ref/fate/pictor b/tests/ref/fate/pictor index 3fa0f31f12..e307b5fc3e 100644 --- a/tests/ref/fate/pictor +++ b/tests/ref/fate/pictor @@ -1 +1 @@ -0, 0, 192816, 0xf97e2ba1 +0, 0, 192816, 0x29b9c158 |