Commit 3b372663 authored by kostya's avatar kostya

Compact and make constant two tables used by Musepack decoders

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18633 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c5531eaa
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
static VLC scfi_vlc, dscf_vlc, hdr_vlc, quant_vlc[MPC7_QUANT_VLC_TABLES][2]; static VLC scfi_vlc, dscf_vlc, hdr_vlc, quant_vlc[MPC7_QUANT_VLC_TABLES][2];
static uint16_t quant_offsets[MPC7_QUANT_VLC_TABLES*2 + 1] = static const uint16_t quant_offsets[MPC7_QUANT_VLC_TABLES*2 + 1] =
{ {
0, 512, 1024, 1536, 2052, 2564, 3076, 3588, 4100, 4612, 5124, 0, 512, 1024, 1536, 2052, 2564, 3076, 3588, 4100, 4612, 5124,
5636, 6164, 6676, 7224 5636, 6164, 6676, 7224
......
...@@ -88,7 +88,7 @@ static int mpc8_get_mask(GetBitContext *gb, int size, int t) ...@@ -88,7 +88,7 @@ static int mpc8_get_mask(GetBitContext *gb, int size, int t)
return mask; return mask;
} }
static int vlc_offsets[13] = { static const uint16_t vlc_offsets[13] = {
0, 640, 1184, 1748, 2298, 2426, 2554, 3066, 3578, 4106, 4618, 5196, 5708 0, 640, 1184, 1748, 2298, 2426, 2554, 3066, 3578, 4106, 4618, 5196, 5708
}; };
......
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