libavcodec/dcadec.c:1467: error: Buffer Overrun L2
  Offset: [0, 1085+max(7, `avctx->priv_data->prim_channels`)] (⇐ [0, -1+max(7, `avctx->priv_data->prim_channels`)] + [0, 1086]) Size: 7 by call to `dca_filter_channels`.

libavcodec/dcadec.c:1300:32: Assignment
1298.         avctx->channel_layout = dca_core_channel_layout[s->amode];
1299. 
1300.         if (s->prim_channels + !!s->lfe > 2 &&
                                     ^
1301.             avctx->request_channel_layout == AV_CH_LAYOUT_STEREO) {
1302.             /*

libavcodec/dcadec.c:1467:9: Call
1465.             s->samples_chanptr[ch] = s->extra_channels[ch - channels] + i * block;
1466. 
1467.         dca_filter_channels(s, i, upsample);
              ^
1468. 
1469.         /* If this was marked as a DTS-ES stream we need to subtract back- */

libavcodec/dcadec.c:933:1: Parameter `s->prim_channels`
  931. }
  932. 
  933. static int dca_filter_channels(DCAContext *s, int block_index, int upsample)
       ^
  934. {
  935.     float (*subband_samples)[DCA_SUBBANDS][8] = s->subband_samples[block_index];

libavcodec/dcadec.c:948:17: Call
  946.         for (k = 0; k < s->prim_channels; k++) {
  947.             if (s->channel_order_tab[k] >= 0)
  948.                 qmf_64_subbands(s, k, subband_samples[k],
                       ^
  949.                                 s->samples_chanptr[s->channel_order_tab[k]],
  950.                                 /* Upsampling needs a factor 2 here. */

libavcodec/dcadec.c:617:14: <Offset trace>
615.         }
616. 
617.         for (i = 0; i < 64; i++) {
                  ^
618.             float out = raZ[i];
619.             for (j = 0; j < 1024; j += 128)

libavcodec/dcadec.c:617:14: Assignment
    615.         }
    616. 
    617.         for (i = 0; i < 64; i++) {
                      ^
    618.             float out = raZ[i];
    619.             for (j = 0; j < 1024; j += 128)

libavcodec/dcadec.c:587:1: <Length trace>
585.  * http://multimedia.cx/mirror/dca-transform.pdf, with guessed tweaks
586.  * for doubling the size. */
587. static void qmf_64_subbands(DCAContext *s, int chans, float samples_in[64][8],
     ^
588.                             float *samples_out, float scale)
589. {

libavcodec/dcadec.c:587:1: Parameter `chans`
    585.  * http://multimedia.cx/mirror/dca-transform.pdf, with guessed tweaks
    586.  * for doubling the size. */
    587. static void qmf_64_subbands(DCAContext *s, int chans, float samples_in[64][8],
         ^
    588.                             float *samples_out, float scale)
    589. {

libavcodec/dcadec.c:592:5: Assignment
    590.     float raXin[64];
    591.     float A[32], B[32];
    592.     float *raX = s->subband_fir_hist[chans];
             ^
    593.     float *raZ = s->subband_fir_noidea[chans];
    594.     unsigned i, j, k, subindex;

libavcodec/dcadec.c:620:53: Array access: Offset: [0, 1085+max(7, avctx->priv_data->prim_channels)] (⇐ [0, -1+max(7, avctx->priv_data->prim_channels)] + [0, 1086]) Size: 7 by call to `dca_filter_channels` 
    618.             float out = raZ[i];
    619.             for (j = 0; j < 1024; j += 128)
    620.                 out += ff_dca_fir_64bands[j + i] * (raX[j + i] - raX[j + 63 - i]);
                                                             ^
    621.             *samples_out++ = out * scale;
    622.         }
