libavcodec/dca.c:1270: 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:1209:1: Parameter `avctx->priv_data->prim_channels`
1207.  * FIXME add arguments
1208.  */
1209. static int dca_decode_frame(AVCodecContext * avctx,
      ^
1210.                             void *data, int *data_size,
1211.                             const uint8_t * buf, int buf_size)

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

libavcodec/dca.c:300:1: Parameter `s->prim_channels`
  298. }
  299. 
  300. static int dca_parse_frame_header(DCAContext * s)
       ^
  301. {
  302.     int i, j;

libavcodec/dca.c:1270:9: Call
1268.     *data_size = 256 / 8 * s->sample_blocks * sizeof(int16_t) * channels;
1269.     for (i = 0; i < (s->sample_blocks / 8); i++) {
1270.         dca_decode_block(s);
              ^
1271.         s->dsp.float_to_int16_interleave(samples, s->samples_chanptr, 256, channels);
1272.         samples += 256 * channels;

libavcodec/dca.c:1121:1: Parameter `s->prim_channels`
  1119.  */
  1120. 
  1121. static int dca_decode_block(DCAContext * s)
        ^
  1122. {
  1123. 

libavcodec/dca.c:1144:9: Call
  1142.     av_log(s->avctx, AV_LOG_DEBUG, "DSYNC dca_subsubframe\n");
  1143. #endif
  1144.     if (dca_subsubframe(s))
                ^
  1145.         return -1;
  1146. 

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

libavcodec/dca.c:1059:10: Call
    1057. /*        static float pcm_to_double[8] =
    1058.             {32768.0, 32768.0, 524288.0, 524288.0, 0, 8388608.0, 8388608.0};*/
    1059.          qmf_32_subbands(s, k, subband_samples[k], &s->samples[256 * s->channel_order_tab[k]],
                   ^
    1060.                             M_SQRT1_2*s->scale_bias /*pcm_to_double[s->source_pcm_res] */ ,
    1061.                             s->add_bias );

libavcodec/dca.c:760:14: <Offset trace>
758. 
759.         /* Multiply by filter coefficients */
760.         for (i = 0; i < 16; i++){
                  ^
761.             float a= subband_fir_hist2[i   ];
762.             float b= subband_fir_hist2[i+16];

libavcodec/dca.c:760:14: Assignment
      758. 
      759.         /* Multiply by filter coefficients */
      760.         for (i = 0; i < 16; i++){
                        ^
      761.             float a= subband_fir_hist2[i   ];
      762.             float b= subband_fir_hist2[i+16];

libavcodec/dca.c:725:1: <Length trace>
723. }
724. 
725. static void qmf_32_subbands(DCAContext * s, int chans,
     ^
726.                             float samples_in[32][8], float *samples_out,
727.                             float scale, float bias)

libavcodec/dca.c:725:1: Parameter `chans`
      723. }
      724. 
      725. static void qmf_32_subbands(DCAContext * s, int chans,
           ^
      726.                             float samples_in[32][8], float *samples_out,
      727.                             float scale, float bias)

libavcodec/dca.c:734:5: Assignment
      732. 
      733.     int hist_index= s->hist_index[chans];
      734.     float *subband_fir_hist2 = s->subband_fir_noidea[chans];
               ^
      735. 
      736.     int subindex;

libavcodec/dca.c:761: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` 
      759.         /* Multiply by filter coefficients */
      760.         for (i = 0; i < 16; i++){
      761.             float a= subband_fir_hist2[i   ];
                                ^
      762.             float b= subband_fir_hist2[i+16];
      763.             float c= 0;
