Commit 26eee872 authored by Paul B Mahol's avatar Paul B Mahol

avcodec/escape124: change transitions table type to int8_t

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent f57897e4
...@@ -145,7 +145,7 @@ static MacroBlock decode_macroblock(Escape124Context* s, GetBitContext* gb, ...@@ -145,7 +145,7 @@ static MacroBlock decode_macroblock(Escape124Context* s, GetBitContext* gb,
unsigned block_index, depth; unsigned block_index, depth;
int value = get_bits1(gb); int value = get_bits1(gb);
if (value) { if (value) {
static const char transitions[3][2] = { {2, 1}, {0, 2}, {1, 0} }; static const int8_t transitions[3][2] = { {2, 1}, {0, 2}, {1, 0} };
value = get_bits1(gb); value = get_bits1(gb);
*codebook_index = transitions[*codebook_index][value]; *codebook_index = transitions[*codebook_index][value];
} }
......
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