[FFmpeg-cvslog] Increase eXtended BINary text palette dynamics.
Carl Eugen Hoyos
git at videolan.org
Sun Nov 13 15:45:11 CET 2011
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sun Nov 13 14:42:22 2011 +0100| [2b656844f871464013d9629b7858a199ddc5678e] | committer: Carl Eugen Hoyos
Increase eXtended BINary text palette dynamics.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2b656844f871464013d9629b7858a199ddc5678e
---
libavcodec/bintext.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/bintext.c b/libavcodec/bintext.c
index 947be39..df37fee 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 {
More information about the ffmpeg-cvslog
mailing list