Commit 7bd8b70f authored by Paul B Mahol's avatar Paul B Mahol

escape130: fix colors

parent 1e8f7732
...@@ -249,7 +249,7 @@ static int escape130_decode_frame(AVCodecContext *avctx, ...@@ -249,7 +249,7 @@ static int escape130_decode_frame(AVCodecContext *avctx,
unsigned adjust_index = get_bits(&gb, 3); unsigned adjust_index = get_bits(&gb, 3);
static const int8_t adjust[2][8] = static const int8_t adjust[2][8] =
{ { 1, 1, 0, -1, -1, -1, 0, 1 }, { { 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; cb = (cb + adjust[0][adjust_index]) & 31;
cr = (cr + adjust[1][adjust_index]) & 31; cr = (cr + adjust[1][adjust_index]) & 31;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment