libavcodec/dca.c:1286: error: Buffer Overrun L2
  Offset: [0, -1+max(7, `avctx->priv_data->prim_channels`)] Size: 5 by call to `dca_decode_block`.

libavcodec/dca.c:1253:1: Parameter `avctx->priv_data->prim_channels`
1251.  * FIXME add arguments
1252.  */
1253. static int dca_decode_frame(AVCodecContext * avctx,
      ^
1254.                             void *data, int *data_size,
1255.                             AVPacket *avpkt)

libavcodec/dca.c:1276:9: Call
1274. 
1275.     init_get_bits(&s->gb, s->dca_buffer, s->dca_buffer_size * 8);
1276.     if (dca_parse_frame_header(s) < 0) {
              ^
1277.         //seems like the frame is corrupt, try with the next one
1278.         *data_size=0;

libavcodec/dca.c:445:1: Parameter `s->prim_channels`
  443. }
  444. 
  445. static int dca_parse_frame_header(DCAContext * s)
       ^
  446. {
  447.     init_get_bits(&s->gb, s->dca_buffer, s->dca_buffer_size * 8);

libavcodec/dca.c:1286:9: Call
1284. 
1285.     for (i = 0; i < (s->sample_blocks / 8); i++) {
1286.         dca_decode_block(s, 0, i);
              ^
1287.     }
1288. 

libavcodec/dca.c:1164:1: Parameter `base_channel`
  1162.  */
  1163. 
  1164. static int dca_decode_block(DCAContext * s, int base_channel, int block_index)
        ^
  1165. {
  1166. 

libavcodec/dca.c:1179:13: Call
  1177. #endif
  1178.         /* Read subframe header */
  1179.         if (dca_subframe_header(s, base_channel, block_index))
                    ^
  1180.             return -1;
  1181.     }

libavcodec/dca.c:551:1: <Offset trace>
549. }
550. 
551. static int dca_subframe_header(DCAContext * s, int base_channel, int block_index)
     ^
552. {
553.     /* Primary audio coding side information */

libavcodec/dca.c:551:1: Parameter `s->prim_channels`
    549. }
    550. 
    551. static int dca_subframe_header(DCAContext * s, int base_channel, int block_index)
         ^
    552. {
    553.     /* Primary audio coding side information */

libavcodec/dcadata.h:7531:1: <Length trace>
7529. };
7530. 
7531. static const uint8_t dca_default_coeffs[16][5][2] = {
      ^
7532.     { { 13, 13 },                                                 },
7533.     { {  0, 64 }, { 64,  0 },                                     },

libavcodec/dcadata.h:7531:1: Array declaration
    7529. };
    7530. 
    7531. static const uint8_t dca_default_coeffs[16][5][2] = {
          ^
    7532.     { { 13, 13 },                                                 },
    7533.     { {  0, 64 }, { 64,  0 },                                     },

libavcodec/dca.c:683:41: Array access: Offset: [0, -1+max(7, avctx->priv_data->prim_channels)] Size: 5 by call to `dca_decode_block` 
    681.             int am = s->amode & DCA_CHANNEL_MASK;
    682.             for (j = base_channel; j < s->prim_channels; j++) {
    683.                 s->downmix_coef[j][0] = dca_default_coeffs[am][j][0];
                                                 ^
    684.                 s->downmix_coef[j][1] = dca_default_coeffs[am][j][1];
    685.             }
