libavcodec/dca.c:1180: 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:1135:1: Parameter `avctx->priv_data->prim_channels`
1133.  * FIXME add arguments
1134.  */
1135. static int dca_decode_frame(AVCodecContext * avctx,
      ^
1136.                             void *data, int *data_size,
1137.                             const uint8_t * buf, int buf_size)

libavcodec/dca.c:1153:9: Call
1151. 
1152.     init_get_bits(&s->gb, s->dca_buffer, s->dca_buffer_size * 8);
1153.     if (dca_parse_frame_header(s) < 0) {
              ^
1154.         //seems like the frame is corrupt, try with the next one
1155.         *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:1180:9: Call
1178.     *data_size = 256 / 8 * s->sample_blocks * sizeof(int16_t) * channels;
1179.     for (i = 0; i < (s->sample_blocks / 8); i++) {
1180.         dca_decode_block(s);
              ^
1181.         s->dsp.float_to_int16_interleave(samples, s->samples_chanptr, 256, channels);
1182.         samples += 256 * channels;

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

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

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

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

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

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

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

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

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

libavcodec/dca.c:686: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` 
      684.         /* Multiply by filter coefficients */
      685.         for (i = 0; i < 16; i++){
      686.             float a= subband_fir_hist2[i   ];
                                ^
      687.             float b= subband_fir_hist2[i+16];
      688.             float c= 0;
