Mercurial > libavcodec.hg
changeset 6686:0c6c2e1b7fb3 libavcodec
add const
author | bcoudurier |
---|---|
date | Sat, 26 Apr 2008 12:33:02 +0000 |
parents | df4f7cf1ee5f |
children | 798391f1ce13 |
files | mpegaudiodec.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegaudiodec.c Sat Apr 26 11:52:33 2008 +0000 +++ b/mpegaudiodec.c Sat Apr 26 12:33:02 2008 +0000 @@ -2476,10 +2476,10 @@ #ifdef CONFIG_MP3ON4_DECODER /* Next 3 arrays are indexed by channel config number (passed via codecdata) */ -static int mp3Frames[16] = {0,1,1,2,3,3,4,5,2}; /* number of mp3 decoder instances */ -static int mp3Channels[16] = {0,1,2,3,4,5,6,8,4}; /* total output channels */ +static const int mp3Frames[16] = {0,1,1,2,3,3,4,5,2}; /* number of mp3 decoder instances */ +static const int mp3Channels[16] = {0,1,2,3,4,5,6,8,4}; /* total output channels */ /* offsets into output buffer, assume output order is FL FR BL BR C LFE */ -static int chan_offset[9][5] = { +static const int chan_offset[9][5] = { {0}, {0}, // C {0}, // FLR @@ -2566,7 +2566,7 @@ const unsigned char *start2 = buf, *start; int fr, i, j, n; int off = avctx->channels; - int *coff = chan_offset[s->chan_cfg]; + const int *coff = chan_offset[s->chan_cfg]; len = buf_size;