libavcodec/mpc.c:55: error: Buffer Overrun L2
  Offset: [6+min(0, `c->synth_buf_offset[*]`), 7+max(511, `c->synth_buf_offset[*]`)] (⇐ [min(0, `c->synth_buf_offset[*]`), 1+max(511, `c->synth_buf_offset[*]`)] + 6) Size: 2 by call to `ff_mpa_synth_filter`.

libavcodec/mpc.c:46:1: Parameter `c->synth_buf[*]`
44.  * Process decoded Musepack data and produce PCM
45.  */
46. static void mpc_synth(MPCContext *c, int16_t *out)
    ^
47. {
48.     int dither_state = 0;

libavcodec/mpc.c:55:13: Call
53.         samples_ptr = samples + ch;
54.         for(i = 0; i < SAMPLES_PER_BAND; i++) {
55.             ff_mpa_synth_filter(c->synth_buf[ch], &(c->synth_buf_offset[ch]),
                ^
56.                                 mpa_window, &dither_state,
57.                                 samples_ptr, 2,

libavcodec/mpegaudiodec.c:844:1: Parameter `*synth_buf_ptr`
  842.    32 samples. */
  843. /* XXX: optimize by avoiding ring buffer usage */
  844. void ff_mpa_synth_filter(MPA_INT *synth_buf_ptr, int *synth_buf_offset,
       ^
  845.                          MPA_INT *window, int *dither_state,
  846.                          OUT_INT *samples, int incr,

libavcodec/mpegaudiodec.c:861:5: Assignment
  859. 
  860.     offset = *synth_buf_offset;
  861.     synth_buf = synth_buf_ptr + offset;
           ^
  862. 
  863. #if FRAC_BITS <= 15

libavcodec/mpegaudiodec.c:871:5: Call
  869.     }
  870. #else
  871.     dct32(synth_buf, sb_samples);
           ^
  872. #endif
  873. 

libavcodec/mpegaudiodec.c:590:1: <Length trace>
588. 
589. /* DCT32 without 1/sqrt(2) coef zero scaling. */
590. static void dct32(int32_t *out, int32_t *tab)
     ^
591. {
592.     int tmp0, tmp1;

libavcodec/mpegaudiodec.c:590:1: Parameter `*out`
    588. 
    589. /* DCT32 without 1/sqrt(2) coef zero scaling. */
    590. static void dct32(int32_t *out, int32_t *tab)
         ^
    591. {
    592.     int tmp0, tmp1;

libavcodec/mpegaudiodec.c:717:5: Array access: Offset: [6+min(0, c->synth_buf_offset[*]), 7+max(511, c->synth_buf_offset[*])] (⇐ [min(0, c->synth_buf_offset[*]), 1+max(511, c->synth_buf_offset[*])] + 6) Size: 2 by call to `ff_mpa_synth_filter` 
    715.     out[10] = tab[10];
    716.     out[26] = tab[11];
    717.     out[ 6] = tab[12];
             ^
    718.     out[22] = tab[13];
    719.     out[14] = tab[14];

static void dct32(int32_t *out, int32_t *tab)
{
    int tmp0, tmp1;
    BF( 0, 31, COS0_0 , 1);
    BF(15, 16, COS0_15, 5);
    BF( 0, 15, COS1_0 , 1);
    BF(16, 31,-COS1_0 , 1);
    BF( 7, 24, COS0_7 , 1);
    BF( 8, 23, COS0_8 , 1);
    BF( 7,  8, COS1_7 , 4);
    BF(23, 24,-COS1_7 , 4);
    BF( 0,  7, COS2_0 , 1);
    BF( 8, 15,-COS2_0 , 1);
    BF(16, 23, COS2_0 , 1);
    BF(24, 31,-COS2_0 , 1);
    BF( 3, 28, COS0_3 , 1);
    BF(12, 19, COS0_12, 2);
    BF( 3, 12, COS1_3 , 1);
    BF(19, 28,-COS1_3 , 1);
    BF( 4, 27, COS0_4 , 1);
    BF(11, 20, COS0_11, 2);
    BF( 4, 11, COS1_4 , 1);
    BF(20, 27,-COS1_4 , 1);
    BF( 3,  4, COS2_3 , 3);
    BF(11, 12,-COS2_3 , 3);
    BF(19, 20, COS2_3 , 3);
    BF(27, 28,-COS2_3 , 3);
    BF( 0,  3, COS3_0 , 1);
    BF( 4,  7,-COS3_0 , 1);
    BF( 8, 11, COS3_0 , 1);
    BF(12, 15,-COS3_0 , 1);
    BF(16, 19, COS3_0 , 1);
    BF(20, 23,-COS3_0 , 1);
    BF(24, 27, COS3_0 , 1);
    BF(28, 31,-COS3_0 , 1);
    BF( 1, 30, COS0_1 , 1);
    BF(14, 17, COS0_14, 3);
    BF( 1, 14, COS1_1 , 1);
    BF(17, 30,-COS1_1 , 1);
    BF( 6, 25, COS0_6 , 1);
    BF( 9, 22, COS0_9 , 1);
    BF( 6,  9, COS1_6 , 2);
    BF(22, 25,-COS1_6 , 2);
    BF( 1,  6, COS2_1 , 1);
    BF( 9, 14,-COS2_1 , 1);
    BF(17, 22, COS2_1 , 1);
    BF(25, 30,-COS2_1 , 1);
    BF( 2, 29, COS0_2 , 1);
    BF(13, 18, COS0_13, 3);
    BF( 2, 13, COS1_2 , 1);
    BF(18, 29,-COS1_2 , 1);
    BF( 5, 26, COS0_5 , 1);
    BF(10, 21, COS0_10, 1);
    BF( 5, 10, COS1_5 , 2);
    BF(21, 26,-COS1_5 , 2);
    BF( 2,  5, COS2_2 , 1);
    BF(10, 13,-COS2_2 , 1);
    BF(18, 21, COS2_2 , 1);
    BF(26, 29,-COS2_2 , 1);
    BF( 1,  2, COS3_1 , 2);
    BF( 5,  6,-COS3_1 , 2);
    BF( 9, 10, COS3_1 , 2);
    BF(13, 14,-COS3_1 , 2);
    BF(17, 18, COS3_1 , 2);
    BF(21, 22,-COS3_1 , 2);
    BF(25, 26, COS3_1 , 2);
    BF(29, 30,-COS3_1 , 2);
    BF1( 0,  1,  2,  3);
    BF2( 4,  5,  6,  7);
    BF1( 8,  9, 10, 11);
    BF2(12, 13, 14, 15);
    BF1(16, 17, 18, 19);
    BF2(20, 21, 22, 23);
    BF1(24, 25, 26, 27);
    BF2(28, 29, 30, 31);
    ADD( 8, 12);
    ADD(12, 10);
    ADD(10, 14);
    ADD(14,  9);
    ADD( 9, 13);
    ADD(13, 11);
    ADD(11, 15);
    out[ 0] = tab[0];
    out[16] = tab[1];
    out[ 8] = tab[2];
    out[24] = tab[3];
    out[ 4] = tab[4];
    out[20] = tab[5];
    out[12] = tab[6];
    out[28] = tab[7];
    out[ 2] = tab[8];
    out[18] = tab[9];
    out[10] = tab[10];
    out[26] = tab[11];
    out[ 6] = tab[12];
    out[22] = tab[13];
    out[14] = tab[14];
    out[30] = tab[15];
    ADD(24, 28);
    ADD(28, 26);
    ADD(26, 30);
    ADD(30, 25);
    ADD(25, 29);
    ADD(29, 27);
    ADD(27, 31);
    out[ 1] = tab[16] + tab[24];
    out[17] = tab[17] + tab[25];
    out[ 9] = tab[18] + tab[26];
    out[25] = tab[19] + tab[27];
    out[ 5] = tab[20] + tab[28];
    out[21] = tab[21] + tab[29];
    out[13] = tab[22] + tab[30];
    out[29] = tab[23] + tab[31];
    out[ 3] = tab[24] + tab[20];
    out[19] = tab[25] + tab[21];
    out[11] = tab[26] + tab[22];
    out[27] = tab[27] + tab[23];
    out[ 7] = tab[28] + tab[18];
    out[23] = tab[29] + tab[19];
    out[15] = tab[30] + tab[17];
    out[31] = tab[31];
}
['static void mpc_synth(MPCContext *c, int16_t *out)\n{\n    int dither_state = 0;\n    int i, ch;\n    OUT_INT samples[MPA_MAX_CHANNELS * MPA_FRAME_SIZE], *samples_ptr;\n    for(ch = 0;  ch < 2; ch++){\n        samples_ptr = samples + ch;\n        for(i = 0; i < SAMPLES_PER_BAND; i++) {\n            ff_mpa_synth_filter(c->synth_buf[ch], &(c->synth_buf_offset[ch]),\n                                mpa_window, &dither_state,\n                                samples_ptr, 2,\n                                c->sb_samples[ch][i]);\n            samples_ptr += 64;\n        }\n    }\n    for(i = 0; i < MPC_FRAME_SIZE*2; i++)\n        *out++=samples[i];\n}', 'void ff_mpa_synth_filter(MPA_INT *synth_buf_ptr, int *synth_buf_offset,\n                         MPA_INT *window, int *dither_state,\n                         OUT_INT *samples, int incr,\n                         int32_t sb_samples[SBLIMIT])\n{\n    register MPA_INT *synth_buf;\n    register const MPA_INT *w, *w2, *p;\n    int j, offset;\n    OUT_INT *samples2;\n#if FRAC_BITS <= 15\n    int32_t tmp[32];\n    int sum, sum2;\n#else\n    int64_t sum, sum2;\n#endif\n    offset = *synth_buf_offset;\n    synth_buf = synth_buf_ptr + offset;\n#if FRAC_BITS <= 15\n    dct32(tmp, sb_samples);\n    for(j=0;j<32;j++) {\n        synth_buf[j] = av_clip_int16(tmp[j]);\n    }\n#else\n    dct32(synth_buf, sb_samples);\n#endif\n    memcpy(synth_buf + 512, synth_buf, 32 * sizeof(MPA_INT));\n    samples2 = samples + 31 * incr;\n    w = window;\n    w2 = window + 31;\n    sum = *dither_state;\n    p = synth_buf + 16;\n    SUM8(MACS, sum, w, p);\n    p = synth_buf + 48;\n    SUM8(MLSS, sum, w + 32, p);\n    *samples = round_sample(&sum);\n    samples += incr;\n    w++;\n    for(j=1;j<16;j++) {\n        sum2 = 0;\n        p = synth_buf + 16 + j;\n        SUM8P2(sum, MACS, sum2, MLSS, w, w2, p);\n        p = synth_buf + 48 - j;\n        SUM8P2(sum, MLSS, sum2, MLSS, w + 32, w2 + 32, p);\n        *samples = round_sample(&sum);\n        samples += incr;\n        sum += sum2;\n        *samples2 = round_sample(&sum);\n        samples2 -= incr;\n        w++;\n        w2--;\n    }\n    p = synth_buf + 32;\n    SUM8(MLSS, sum, w + 32, p);\n    *samples = round_sample(&sum);\n    *dither_state= sum;\n    offset = (offset - 32) & 511;\n    *synth_buf_offset = offset;\n}', 'static void dct32(int32_t *out, int32_t *tab)\n{\n    int tmp0, tmp1;\n    BF( 0, 31, COS0_0 , 1);\n    BF(15, 16, COS0_15, 5);\n    BF( 0, 15, COS1_0 , 1);\n    BF(16, 31,-COS1_0 , 1);\n    BF( 7, 24, COS0_7 , 1);\n    BF( 8, 23, COS0_8 , 1);\n    BF( 7,  8, COS1_7 , 4);\n    BF(23, 24,-COS1_7 , 4);\n    BF( 0,  7, COS2_0 , 1);\n    BF( 8, 15,-COS2_0 , 1);\n    BF(16, 23, COS2_0 , 1);\n    BF(24, 31,-COS2_0 , 1);\n    BF( 3, 28, COS0_3 , 1);\n    BF(12, 19, COS0_12, 2);\n    BF( 3, 12, COS1_3 , 1);\n    BF(19, 28,-COS1_3 , 1);\n    BF( 4, 27, COS0_4 , 1);\n    BF(11, 20, COS0_11, 2);\n    BF( 4, 11, COS1_4 , 1);\n    BF(20, 27,-COS1_4 , 1);\n    BF( 3,  4, COS2_3 , 3);\n    BF(11, 12,-COS2_3 , 3);\n    BF(19, 20, COS2_3 , 3);\n    BF(27, 28,-COS2_3 , 3);\n    BF( 0,  3, COS3_0 , 1);\n    BF( 4,  7,-COS3_0 , 1);\n    BF( 8, 11, COS3_0 , 1);\n    BF(12, 15,-COS3_0 , 1);\n    BF(16, 19, COS3_0 , 1);\n    BF(20, 23,-COS3_0 , 1);\n    BF(24, 27, COS3_0 , 1);\n    BF(28, 31,-COS3_0 , 1);\n    BF( 1, 30, COS0_1 , 1);\n    BF(14, 17, COS0_14, 3);\n    BF( 1, 14, COS1_1 , 1);\n    BF(17, 30,-COS1_1 , 1);\n    BF( 6, 25, COS0_6 , 1);\n    BF( 9, 22, COS0_9 , 1);\n    BF( 6,  9, COS1_6 , 2);\n    BF(22, 25,-COS1_6 , 2);\n    BF( 1,  6, COS2_1 , 1);\n    BF( 9, 14,-COS2_1 , 1);\n    BF(17, 22, COS2_1 , 1);\n    BF(25, 30,-COS2_1 , 1);\n    BF( 2, 29, COS0_2 , 1);\n    BF(13, 18, COS0_13, 3);\n    BF( 2, 13, COS1_2 , 1);\n    BF(18, 29,-COS1_2 , 1);\n    BF( 5, 26, COS0_5 , 1);\n    BF(10, 21, COS0_10, 1);\n    BF( 5, 10, COS1_5 , 2);\n    BF(21, 26,-COS1_5 , 2);\n    BF( 2,  5, COS2_2 , 1);\n    BF(10, 13,-COS2_2 , 1);\n    BF(18, 21, COS2_2 , 1);\n    BF(26, 29,-COS2_2 , 1);\n    BF( 1,  2, COS3_1 , 2);\n    BF( 5,  6,-COS3_1 , 2);\n    BF( 9, 10, COS3_1 , 2);\n    BF(13, 14,-COS3_1 , 2);\n    BF(17, 18, COS3_1 , 2);\n    BF(21, 22,-COS3_1 , 2);\n    BF(25, 26, COS3_1 , 2);\n    BF(29, 30,-COS3_1 , 2);\n    BF1( 0,  1,  2,  3);\n    BF2( 4,  5,  6,  7);\n    BF1( 8,  9, 10, 11);\n    BF2(12, 13, 14, 15);\n    BF1(16, 17, 18, 19);\n    BF2(20, 21, 22, 23);\n    BF1(24, 25, 26, 27);\n    BF2(28, 29, 30, 31);\n    ADD( 8, 12);\n    ADD(12, 10);\n    ADD(10, 14);\n    ADD(14,  9);\n    ADD( 9, 13);\n    ADD(13, 11);\n    ADD(11, 15);\n    out[ 0] = tab[0];\n    out[16] = tab[1];\n    out[ 8] = tab[2];\n    out[24] = tab[3];\n    out[ 4] = tab[4];\n    out[20] = tab[5];\n    out[12] = tab[6];\n    out[28] = tab[7];\n    out[ 2] = tab[8];\n    out[18] = tab[9];\n    out[10] = tab[10];\n    out[26] = tab[11];\n    out[ 6] = tab[12];\n    out[22] = tab[13];\n    out[14] = tab[14];\n    out[30] = tab[15];\n    ADD(24, 28);\n    ADD(28, 26);\n    ADD(26, 30);\n    ADD(30, 25);\n    ADD(25, 29);\n    ADD(29, 27);\n    ADD(27, 31);\n    out[ 1] = tab[16] + tab[24];\n    out[17] = tab[17] + tab[25];\n    out[ 9] = tab[18] + tab[26];\n    out[25] = tab[19] + tab[27];\n    out[ 5] = tab[20] + tab[28];\n    out[21] = tab[21] + tab[29];\n    out[13] = tab[22] + tab[30];\n    out[29] = tab[23] + tab[31];\n    out[ 3] = tab[24] + tab[20];\n    out[19] = tab[25] + tab[21];\n    out[11] = tab[26] + tab[22];\n    out[27] = tab[27] + tab[23];\n    out[ 7] = tab[28] + tab[18];\n    out[23] = tab[29] + tab[19];\n    out[15] = tab[30] + tab[17];\n    out[31] = tab[31];\n}']