From a95906af57593dd0f4754b6e2e1d777bbb382f37 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Sun, 13 Nov 2011 14:52:21 +0100 Subject: [PATCH] Increase Pictor/PC Paint palette dynamics. --- libavcodec/pictordec.c | 2 +- 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