libavcodec/dca.c:1181: 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:1143:1: Parameter `avctx->priv_data->prim_channels`
1141.  * FIXME add arguments
1142.  */
1143. static int dca_decode_frame(AVCodecContext * avctx,
      ^
1144.                             void *data, int *data_size,
1145.                             const uint8_t * buf, int buf_size)

libavcodec/dca.c:1161:9: Call
1159. 
1160.     init_get_bits(&s->gb, s->dca_buffer, s->dca_buffer_size * 8);
1161.     if (dca_parse_frame_header(s) < 0) {
              ^
1162.         //seems like the frame is corrupt, try with the next one
1163.         *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:1181:9: Call
1179.     *data_size = 0;
1180.     for (i = 0; i < (s->sample_blocks / 8); i++) {
1181.         dca_decode_block(s);
              ^
1182.         s->dsp.float_to_int16(s->tsamples, s->samples, 256 * channels);
1183.         /* interleave samples */

libavcodec/dca.c:1055:1: Parameter `s->prim_channels`
  1053.  */
  1054. 
  1055. static int dca_decode_block(DCAContext * s)
        ^
  1056. {
  1057. 

libavcodec/dca.c:1078:9: Call
  1076.     av_log(s->avctx, AV_LOG_DEBUG, "DSYNC dca_subsubframe\n");
  1077. #endif
  1078.     if (dca_subsubframe(s))
                ^
  1079.         return -1;
  1080. 

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

libavcodec/dca.c:992:10: Call
    990. /*        static float pcm_to_double[8] =
    991.             {32768.0, 32768.0, 524288.0, 524288.0, 0, 8388608.0, 8388608.0};*/
    992.          qmf_32_subbands(s, k, subband_samples[k], &s->samples[256 * k],
                  ^
    993.                             2.0 / 3 /*pcm_to_double[s->source_pcm_res] */ ,
    994.                             0 /*s->bias */ );

libavcodec/dca.c:705:14: <Offset trace>
703. 
704.         /* Multiply by filter coefficients */
705.         for (k = 31, i = 0; i < 32; i++, k--)
                  ^
706.             for (j = 0; j < 512; j += 64){
707.                 subband_fir_hist2[i]    += prCoeff[i+j]  * ( subband_fir_hist[i+j] - subband_fir_hist[j+k]);

libavcodec/dca.c:705:14: Assignment
      703. 
      704.         /* Multiply by filter coefficients */
      705.         for (k = 31, i = 0; i < 32; i++, k--)
                        ^
      706.             for (j = 0; j < 512; j += 64){
      707.                 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:707: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` 
      705.         for (k = 31, i = 0; i < 32; i++, k--)
      706.             for (j = 0; j < 512; j += 64){
      707.                 subband_fir_hist2[i]    += prCoeff[i+j]  * ( subband_fir_hist[i+j] - subband_fir_hist[j+k]);
                                                                                                ^
      708.                 subband_fir_hist2[i+32] += prCoeff[i+j+32]*(-subband_fir_hist[i+j] - subband_fir_hist[j+k]);
      709.             }
