diff options
author | Peter Ross <pross@xvid.org> | 2019-05-24 13:10:32 +0300 |
---|---|---|
committer | Peter Ross <pross@xvid.org> | 2019-06-08 02:37:26 +0300 |
commit | b6ca032adebe05573d9fe9c3a2625240f55b33b0 (patch) | |
tree | 27a111436a462d5cfb893fbacac40b908b8400ff /libavcodec/vp3data.h | |
parent | ad2745e86763c72b8580429e8e345196a4be27bc (diff) |
avcodec/vp3data: combine eob_run_base and eob_run_get_bits tables
Diffstat (limited to 'libavcodec/vp3data.h')
-rw-r--r-- | libavcodec/vp3data.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libavcodec/vp3data.h b/libavcodec/vp3data.h index c82b1b3a86..d520a10c76 100644 --- a/libavcodec/vp3data.h +++ b/libavcodec/vp3data.h @@ -198,11 +198,10 @@ static const int8_t fixed_motion_vector_table[64] = { }; /* only tokens 0..6 indicate eob runs */ -static const uint8_t eob_run_base[7] = { - 1, 2, 3, 4, 8, 16, 0 -}; -static const uint8_t eob_run_get_bits[7] = { - 0, 0, 0, 2, 3, 4, 12 +static const struct { + uint8_t base, bits; +} eob_run_table[7] = { + {1, 0}, {2, 0}, {3, 0}, {4, 2}, {8, 3}, {16, 4}, {0, 12} }; static const uint8_t zero_run_base[32] = { |