libavcodec/qdm2.c:1941: error: Buffer Overrun L1
  Offset: [2, +oo] (⇐ [0, `q->channels` - 1] + [2, +oo]) Size: 2 by call to `qdm2_calculate_fft`.

libavcodec/qdm2.c:1909:1: Parameter `q->channels`
1907. 
1908. 
1909. static void qdm2_decode (QDM2Context *q, const uint8_t *in, int16_t *out)
      ^
1910. {
1911.     int ch, i;

libavcodec/qdm2.c:1941:9: Call
1939.     /* sound synthesis stage 1 (FFT) */
1940.     for (ch = 0; ch < q->channels; ch++) {
1941.         qdm2_calculate_fft(q, ch, q->sub_packet);
              ^
1942. 
1943.         if (!q->has_errors && q->sub_packet_list_C[0].packet != NULL) {

libavcodec/qdm2.c:1607:1: Parameter `channel`
  1605. 
  1606. 
  1607. static void qdm2_calculate_fft (QDM2Context *q, int channel, int sub_packet)
        ^
  1608. {
  1609.     const float gain = (q->channels == 1 && q->nb_channels == 2) ? 0.5f : 1.0f;

libavcodec/qdm2.c:1613:5: Call
  1611.     q->fft.complex[channel][0].re *= 2.0f;
  1612.     q->fft.complex[channel][0].im = 0.0f;
  1613.     ff_rdft_calc(&q->rdft_ctx, (FFTSample *)q->fft.complex[channel]);
            ^
  1614.     /* add samples to output buffer */
  1615.     for (i = 0; i < ((q->fft_frame_size + 15) & ~15); i++)

libavcodec/rdft.c:119:1: Parameter `*data`
    117. }
    118. 
    119. void ff_rdft_calc(RDFTContext *s, FFTSample *data)
         ^
    120. {
    121.     ff_rdft_calc_c(s, data);

libavcodec/rdft.c:121:5: Call
    119. void ff_rdft_calc(RDFTContext *s, FFTSample *data)
    120. {
    121.     ff_rdft_calc_c(s, data);
             ^
    122. }
    123. 

libavcodec/rdft.c:96:10: <Offset trace>
94.     data[0] = ev.re+data[1];
95.     data[1] = ev.re-data[1];
96.     for (i = 1; i < (n>>2); i++) {
             ^
97.         i1 = 2*i;
98.         i2 = n-i1;

libavcodec/rdft.c:96:10: Assignment
      94.     data[0] = ev.re+data[1];
      95.     data[1] = ev.re-data[1];
      96.     for (i = 1; i < (n>>2); i++) {
                   ^
      97.         i1 = 2*i;
      98.         i2 = n-i1;

libavcodec/rdft.c:97:9: Assignment
      95.     data[1] = ev.re-data[1];
      96.     for (i = 1; i < (n>>2); i++) {
      97.         i1 = 2*i;
                  ^
      98.         i2 = n-i1;
      99.         /* Separate even and odd FFTs */

libavcodec/rdft.c:77:1: <Length trace>
75.  * ref: http://www.engineeringproductivitytools.com/stuff/T0001/PT10.HTM
76.  */
77. void ff_rdft_calc_c(RDFTContext* s, FFTSample* data)
    ^
78. {
79.     int i, i1, i2;

libavcodec/rdft.c:77:1: Parameter `*data`
      75.  * ref: http://www.engineeringproductivitytools.com/stuff/T0001/PT10.HTM
      76.  */
      77. void ff_rdft_calc_c(RDFTContext* s, FFTSample* data)
          ^
      78. {
      79.     int i, i1, i2;

libavcodec/rdft.c:100:22: Array access: Offset: [2, +oo] (⇐ [0, q->channels - 1] + [2, +oo]) Size: 2 by call to `qdm2_calculate_fft` 
       98.         i2 = n-i1;
       99.         /* Separate even and odd FFTs */
      100.         ev.re =  k1*(data[i1  ]+data[i2  ]);
                                ^
      101.         od.im = -k2*(data[i1  ]-data[i2  ]);
      102.         ev.im =  k1*(data[i1+1]-data[i2+1]);
