Commit 0eff67c9 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

libdca: add missing const qualifier for global tables

parent 666e0223
......@@ -36,7 +36,7 @@
int dca_downmix_init (int input, int flags, level_t * level,
level_t clev, level_t slev)
{
static uint8_t table[11][10] = {
static const uint8_t table[11][10] = {
/* DCA_MONO */
{DCA_MONO, DCA_MONO, DCA_MONO, DCA_MONO,
DCA_MONO, DCA_MONO, DCA_MONO, DCA_MONO,
......
......@@ -211,7 +211,7 @@ int dca_frame (dca_state_t * state, uint8_t * buf, int * flags,
level_t * level, sample_t bias)
{
int i, j;
static float adj_table[] = { 1.0, 1.1250, 1.2500, 1.4375 };
static const float adj_table[] = { 1.0, 1.1250, 1.2500, 1.4375 };
dca_bitstream_init (state, buf, state->word_mode, state->bigendian_mode);
......
......@@ -22,7 +22,7 @@
*/
/* 16bits signed fractional Q13 binary codes */
static int16_t adpcm_vb[4096][4] =
static const int16_t adpcm_vb[4096][4] =
{
{ 9928, -2618, -1093, -1263 },
{ 11077, -2876, -1747, -308 },
......
......@@ -23,7 +23,7 @@
/* 8bits signed fractional Q4 binary codes */
static int8_t high_freq_vq[1024][32] =
static const int8_t high_freq_vq[1024][32] =
{
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
......
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