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

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

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

libavcodec/mpegaudiodec.c:842:1: Parameter `*synth_buf_ptr`
  840.    32 samples. */
  841. /* XXX: optimize by avoiding ring buffer usage */
  842. void RENAME(ff_mpa_synth_filter)(MPA_INT *synth_buf_ptr, int *synth_buf_offset,
       ^
  843.                          MPA_INT *window, int *dither_state,
  844.                          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 && !CONFIG_FLOAT

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

libavcodec/mpegaudiodec.c:565:1: <Length trace>
563. 
564. /* DCT32 without 1/sqrt(2) coef zero scaling. */
565. static void dct32(INTFLOAT *out, const INTFLOAT *tab)
     ^
566. {
567.     INTFLOAT tmp0, tmp1;

libavcodec/mpegaudiodec.c:565:1: Parameter `*out`
    563. 
    564. /* DCT32 without 1/sqrt(2) coef zero scaling. */
    565. static void dct32(INTFLOAT *out, const INTFLOAT *tab)
         ^
    566. {
    567.     INTFLOAT tmp0, tmp1;

libavcodec/mpegaudiodec.c:694:5: Array access: Offset: [18+min(0, c->synth_buf_offset[*]), 19+max(511, c->synth_buf_offset[*])] (⇐ [min(0, c->synth_buf_offset[*]), 1+max(511, c->synth_buf_offset[*])] + 18) Size: 2 by call to `ff_mpa_synth_filter` 
    692.     out[28] = val7;
    693.     out[ 2] = val8;
    694.     out[18] = val9;
             ^
    695.     out[10] = val10;
    696.     out[26] = val11;

static void dct32(INTFLOAT *out, const INTFLOAT *tab)
{
    INTFLOAT tmp0, tmp1;
    INTFLOAT val0 , val1 , val2 , val3 , val4 , val5 , val6 , val7 ,
             val8 , val9 , val10, val11, val12, val13, val14, val15,
             val16, val17, val18, val19, val20, val21, val22, val23,
             val24, val25, val26, val27, val28, val29, val30, val31;
    BF0( 0, 31, COS0_0 , 1);
    BF0(15, 16, COS0_15, 5);
    BF( 0, 15, COS1_0 , 1);
    BF(16, 31,-COS1_0 , 1);
    BF0( 7, 24, COS0_7 , 1);
    BF0( 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);
    BF0( 3, 28, COS0_3 , 1);
    BF0(12, 19, COS0_12, 2);
    BF( 3, 12, COS1_3 , 1);
    BF(19, 28,-COS1_3 , 1);
    BF0( 4, 27, COS0_4 , 1);
    BF0(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);
    BF0( 1, 30, COS0_1 , 1);
    BF0(14, 17, COS0_14, 3);
    BF( 1, 14, COS1_1 , 1);
    BF(17, 30,-COS1_1 , 1);
    BF0( 6, 25, COS0_6 , 1);
    BF0( 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);
    BF0( 2, 29, COS0_2 , 1);
    BF0(13, 18, COS0_13, 3);
    BF( 2, 13, COS1_2 , 1);
    BF(18, 29,-COS1_2 , 1);
    BF0( 5, 26, COS0_5 , 1);
    BF0(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] = val0;
    out[16] = val1;
    out[ 8] = val2;
    out[24] = val3;
    out[ 4] = val4;
    out[20] = val5;
    out[12] = val6;
    out[28] = val7;
    out[ 2] = val8;
    out[18] = val9;
    out[10] = val10;
    out[26] = val11;
    out[ 6] = val12;
    out[22] = val13;
    out[14] = val14;
    out[30] = val15;
    ADD(24, 28);
    ADD(28, 26);
    ADD(26, 30);
    ADD(30, 25);
    ADD(25, 29);
    ADD(29, 27);
    ADD(27, 31);
    out[ 1] = val16 + val24;
    out[17] = val17 + val25;
    out[ 9] = val18 + val26;
    out[25] = val19 + val27;
    out[ 5] = val20 + val28;
    out[21] = val21 + val29;
    out[13] = val22 + val30;
    out[29] = val23 + val31;
    out[ 3] = val24 + val20;
    out[19] = val25 + val21;
    out[11] = val26 + val22;
    out[27] = val27 + val23;
    out[ 7] = val28 + val18;
    out[23] = val29 + val19;
    out[15] = val30 + val17;
    out[31] = val31;
}
['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                                ff_mpa_synth_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 RENAME(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                         INTFLOAT 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 CONFIG_FLOAT\n    float sum, sum2;\n#elif 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 && !CONFIG_FLOAT\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(*synth_buf));\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(INTFLOAT *out, const INTFLOAT *tab)\n{\n    INTFLOAT tmp0, tmp1;\n    INTFLOAT val0 , val1 , val2 , val3 , val4 , val5 , val6 , val7 ,\n             val8 , val9 , val10, val11, val12, val13, val14, val15,\n             val16, val17, val18, val19, val20, val21, val22, val23,\n             val24, val25, val26, val27, val28, val29, val30, val31;\n    BF0( 0, 31, COS0_0 , 1);\n    BF0(15, 16, COS0_15, 5);\n    BF( 0, 15, COS1_0 , 1);\n    BF(16, 31,-COS1_0 , 1);\n    BF0( 7, 24, COS0_7 , 1);\n    BF0( 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    BF0( 3, 28, COS0_3 , 1);\n    BF0(12, 19, COS0_12, 2);\n    BF( 3, 12, COS1_3 , 1);\n    BF(19, 28,-COS1_3 , 1);\n    BF0( 4, 27, COS0_4 , 1);\n    BF0(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    BF0( 1, 30, COS0_1 , 1);\n    BF0(14, 17, COS0_14, 3);\n    BF( 1, 14, COS1_1 , 1);\n    BF(17, 30,-COS1_1 , 1);\n    BF0( 6, 25, COS0_6 , 1);\n    BF0( 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    BF0( 2, 29, COS0_2 , 1);\n    BF0(13, 18, COS0_13, 3);\n    BF( 2, 13, COS1_2 , 1);\n    BF(18, 29,-COS1_2 , 1);\n    BF0( 5, 26, COS0_5 , 1);\n    BF0(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] = val0;\n    out[16] = val1;\n    out[ 8] = val2;\n    out[24] = val3;\n    out[ 4] = val4;\n    out[20] = val5;\n    out[12] = val6;\n    out[28] = val7;\n    out[ 2] = val8;\n    out[18] = val9;\n    out[10] = val10;\n    out[26] = val11;\n    out[ 6] = val12;\n    out[22] = val13;\n    out[14] = val14;\n    out[30] = val15;\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] = val16 + val24;\n    out[17] = val17 + val25;\n    out[ 9] = val18 + val26;\n    out[25] = val19 + val27;\n    out[ 5] = val20 + val28;\n    out[21] = val21 + val29;\n    out[13] = val22 + val30;\n    out[29] = val23 + val31;\n    out[ 3] = val24 + val20;\n    out[19] = val25 + val21;\n    out[11] = val26 + val22;\n    out[27] = val27 + val23;\n    out[ 7] = val28 + val18;\n    out[23] = val29 + val19;\n    out[15] = val30 + val17;\n    out[31] = val31;\n}']