Revision 183fceaa

View differences:

libavcodec/mpegaudiodec.c
2476 2476

  
2477 2477
#ifdef CONFIG_MP3ON4_DECODER
2478 2478
/* Next 3 arrays are indexed by channel config number (passed via codecdata) */
2479
static int mp3Frames[16] = {0,1,1,2,3,3,4,5,2};   /* number of mp3 decoder instances */
2480
static int mp3Channels[16] = {0,1,2,3,4,5,6,8,4}; /* total output channels */
2479
static const int mp3Frames[16] = {0,1,1,2,3,3,4,5,2};   /* number of mp3 decoder instances */
2480
static const int mp3Channels[16] = {0,1,2,3,4,5,6,8,4}; /* total output channels */
2481 2481
/* offsets into output buffer, assume output order is FL FR BL BR C LFE */
2482
static int chan_offset[9][5] = {
2482
static const int chan_offset[9][5] = {
2483 2483
    {0},
2484 2484
    {0},            // C
2485 2485
    {0},            // FLR
......
2566 2566
    const unsigned char *start2 = buf, *start;
2567 2567
    int fr, i, j, n;
2568 2568
    int off = avctx->channels;
2569
    int *coff = chan_offset[s->chan_cfg];
2569
    const int *coff = chan_offset[s->chan_cfg];
2570 2570

  
2571 2571
    len = buf_size;
2572 2572

  

Also available in: Unified diff