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

libavcodec/dca.c:1137:1: Parameter `avctx->priv_data->prim_channels`
1135.  * FIXME add arguments
1136.  */
1137. static int dca_decode_frame(AVCodecContext * avctx,
      ^
1138.                             void *data, int *data_size,
1139.                             const uint8_t * buf, int buf_size)

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

libavcodec/dca.c:226:1: Parameter `s->prim_channels`
  224. }
  225. 
  226. static int dca_parse_frame_header(DCAContext * s)
       ^
  227. {
  228.     int i, j;

libavcodec/dca.c:1182:9: Call
1180.     *data_size = 256 / 8 * s->sample_blocks * sizeof(int16_t) * channels;
1181.     for (i = 0; i < (s->sample_blocks / 8); i++) {
1182.         dca_decode_block(s);
              ^
1183.         s->dsp.float_to_int16_interleave(samples, s->samples_chanptr, 256, channels);
1184.         samples += 256 * channels;

libavcodec/dca.c:1049:1: Parameter `s->prim_channels`
  1047.  */
  1048. 
  1049. static int dca_decode_block(DCAContext * s)
        ^
  1050. {
  1051. 

libavcodec/dca.c:1072:9: Call
  1070.     av_log(s->avctx, AV_LOG_DEBUG, "DSYNC dca_subsubframe\n");
  1071. #endif
  1072.     if (dca_subsubframe(s))
                ^
  1073.         return -1;
  1074. 

libavcodec/dca.c:842:1: Parameter `s->prim_channels`
    840. static const uint8_t abits_levels[7] = { 3, 5, 7, 9, 13, 17, 25 };
    841. 
    842. static int dca_subsubframe(DCAContext * s)
         ^
    843. {
    844.     int k, l;

libavcodec/dca.c:986:10: Call
    984. /*        static float pcm_to_double[8] =
    985.             {32768.0, 32768.0, 524288.0, 524288.0, 0, 8388608.0, 8388608.0};*/
    986.          qmf_32_subbands(s, k, subband_samples[k], &s->samples[256 * k],
                  ^
    987.                             M_SQRT1_2 /*pcm_to_double[s->source_pcm_res] */ ,
    988.                             0 /*s->bias */ );

libavcodec/dca.c:687:14: <Offset trace>
685. 
686.         /* Multiply by filter coefficients */
687.         for (i = 0; i < 16; i++){
                  ^
688.             float a= subband_fir_hist2[i   ];
689.             float b= subband_fir_hist2[i+16];

libavcodec/dca.c:687:14: Assignment
      685. 
      686.         /* Multiply by filter coefficients */
      687.         for (i = 0; i < 16; i++){
                        ^
      688.             float a= subband_fir_hist2[i   ];
      689.             float b= subband_fir_hist2[i+16];

libavcodec/dca.c:652:1: <Length trace>
650. }
651. 
652. static void qmf_32_subbands(DCAContext * s, int chans,
     ^
653.                             float samples_in[32][8], float *samples_out,
654.                             float scale, float bias)

libavcodec/dca.c:652:1: Parameter `chans`
      650. }
      651. 
      652. static void qmf_32_subbands(DCAContext * s, int chans,
           ^
      653.                             float samples_in[32][8], float *samples_out,
      654.                             float scale, float bias)

libavcodec/dca.c:661:5: Assignment
      659. 
      660.     int hist_index= s->hist_index[chans];
      661.     float *subband_fir_hist2 = s->subband_fir_noidea[chans];
               ^
      662. 
      663.     int subindex;

libavcodec/dca.c:688:22: Array access: Offset: [0, 14+max(5, avctx->priv_data->prim_channels)] (⇐ [0, -1+max(5, avctx->priv_data->prim_channels)] + [0, 15]) Size: 5 by call to `dca_decode_block` 
      686.         /* Multiply by filter coefficients */
      687.         for (i = 0; i < 16; i++){
      688.             float a= subband_fir_hist2[i   ];
                                ^
      689.             float b= subband_fir_hist2[i+16];
      690.             float c= 0;
