1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

escape130: fix colors

This commit is contained in:
Paul B Mahol 2011-11-30 02:46:35 +00:00
parent 1e8f77324e
commit 7bd8b70f19

View File

@ -249,7 +249,7 @@ static int escape130_decode_frame(AVCodecContext *avctx,
unsigned adjust_index = get_bits(&gb, 3);
static const int8_t adjust[2][8] =
{ { 1, 1, 0, -1, -1, -1, 0, 1 },
{ 0, 1, 1, 0, -1, -2, -1, -1 } };
{ 0, 1, 1, 1, 0, -1, -1, -1 } };
cb = (cb + adjust[0][adjust_index]) & 31;
cr = (cr + adjust[1][adjust_index]) & 31;
}