From 2b656844f871464013d9629b7858a199ddc5678e Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Sun, 13 Nov 2011 14:42:22 +0100 Subject: [PATCH] Increase eXtended BINary text palette dynamics. --- libavcodec/bintext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/bintext.c b/libavcodec/bintext.c index 947be396b8..df37feea12 100644 --- a/libavcodec/bintext.c +++ b/libavcodec/bintext.c @@ -61,7 +61,7 @@ static av_cold int decode_init(AVCodecContext *avctx) if ((s->flags & BINTEXT_PALETTE)) { for (i = 0; i < 16; i++) { - s->palette[i] = 0xFF000000 | (AV_RB24(p) << 2); + s->palette[i] = 0xFF000000 | (AV_RB24(p) << 2) | ((AV_RB24(p) >> 4) & 0x30303); p += 3; } } else {