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

libavcodec/qdm2.c:1886:1: Parameter `q->channels`
1884. 
1885. 
1886. static void qdm2_decode (QDM2Context *q, const uint8_t *in, int16_t *out)
      ^
1887. {
1888.     int ch, i;

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

libavcodec/qdm2.c:1585:1: Parameter `channel`
  1583. 
  1584. 
  1585. static void qdm2_calculate_fft (QDM2Context *q, int channel, int sub_packet)
        ^
  1586. {
  1587.     const float gain = (q->channels == 1 && q->nb_channels == 2) ? 0.5f : 1.0f;

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

libavcodec/rdft.c:126:1: Parameter `*data`
    124. }
    125. 
    126. void ff_rdft_calc(RDFTContext *s, FFTSample *data)
         ^
    127. {
    128.     ff_rdft_calc_c(s, data);

libavcodec/rdft.c:128:5: Call
    126. void ff_rdft_calc(RDFTContext *s, FFTSample *data)
    127. {
    128.     ff_rdft_calc_c(s, data);
             ^
    129. }
    130. 

libavcodec/rdft.c:103:10: <Offset trace>
101.     data[0] = ev.re+data[1];
102.     data[1] = ev.re-data[1];
103.     for (i = 1; i < (n>>2); i++) {
              ^
104.         i1 = 2*i;
105.         i2 = n-i1;

libavcodec/rdft.c:103:10: Assignment
      101.     data[0] = ev.re+data[1];
      102.     data[1] = ev.re-data[1];
      103.     for (i = 1; i < (n>>2); i++) {
                    ^
      104.         i1 = 2*i;
      105.         i2 = n-i1;

libavcodec/rdft.c:104:9: Assignment
      102.     data[1] = ev.re-data[1];
      103.     for (i = 1; i < (n>>2); i++) {
      104.         i1 = 2*i;
                   ^
      105.         i2 = n-i1;
      106.         /* Separate even and odd FFTs */

libavcodec/rdft.c:84:1: <Length trace>
82.  * ref: http://www.engineeringproductivitytools.com/stuff/T0001/PT10.HTM
83.  */
84. static void ff_rdft_calc_c(RDFTContext* s, FFTSample* data)
    ^
85. {
86.     int i, i1, i2;

libavcodec/rdft.c:84:1: Parameter `*data`
      82.  * ref: http://www.engineeringproductivitytools.com/stuff/T0001/PT10.HTM
      83.  */
      84. static void ff_rdft_calc_c(RDFTContext* s, FFTSample* data)
          ^
      85. {
      86.     int i, i1, i2;

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