From: Kostya Shishkov Date: Mon, 20 Apr 2009 15:36:27 +0000 (+0000) Subject: Compact and make constant two tables used by Musepack decoders X-Git-Tag: v0.6~4627 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=40039717171689b6802fa69b9a14679e69675302;p=platform%2Fupstream%2Flibav.git Compact and make constant two tables used by Musepack decoders Originally committed as revision 18633 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/mpc7.c b/libavcodec/mpc7.c index 75f6516..a15f117 100644 --- a/libavcodec/mpc7.c +++ b/libavcodec/mpc7.c @@ -40,7 +40,7 @@ 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, 5636, 6164, 6676, 7224 diff --git a/libavcodec/mpc8.c b/libavcodec/mpc8.c index adee15f..349a01e 100644 --- a/libavcodec/mpc8.c +++ b/libavcodec/mpc8.c @@ -88,7 +88,7 @@ static int mpc8_get_mask(GetBitContext *gb, int size, int t) 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 };