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

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

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

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

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

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

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

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

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

libavcodec/dca.c:696:14: <Offset trace>
694. 
695.         /* Multiply by filter coefficients */
696.         for (k = 31, i = 0; i < 32; i++, k--)
                  ^
697.             for (j = 0; j < 512; j += 64){
698.                 subband_fir_hist2[i]    += prCoeff[i+j]  * ( subband_fir_hist[i+j] - subband_fir_hist[j+k]);

libavcodec/dca.c:696:14: Assignment
      694. 
      695.         /* Multiply by filter coefficients */
      696.         for (k = 31, i = 0; i < 32; i++, k--)
                        ^
      697.             for (j = 0; j < 512; j += 64){
      698.                 subband_fir_hist2[i]    += prCoeff[i+j]  * ( subband_fir_hist[i+j] - subband_fir_hist[j+k]);

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

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

libavcodec/dca.c:661:5: Assignment
      659.     float praXin[33], *raXin = &praXin[1];
      660. 
      661.     float *subband_fir_hist = s->subband_fir_hist[chans];
               ^
      662.     float *subband_fir_hist2 = s->subband_fir_noidea[chans];
      663. 

libavcodec/dca.c:698:86: Array access: Offset: [-oo, 541+max(5, avctx->priv_data->prim_channels)] (⇐ [0, -1+max(5, avctx->priv_data->prim_channels)] + [-oo, 542]) Size: 5 by call to `dca_decode_block` 
      696.         for (k = 31, i = 0; i < 32; i++, k--)
      697.             for (j = 0; j < 512; j += 64){
      698.                 subband_fir_hist2[i]    += prCoeff[i+j]  * ( subband_fir_hist[i+j] - subband_fir_hist[j+k]);
                                                                                                ^
      699.                 subband_fir_hist2[i+32] += prCoeff[i+j+32]*(-subband_fir_hist[i+j] - subband_fir_hist[j+k]);
      700.             }
