libavcodec/dca.c:1274: 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:1211:1: Parameter `avctx->priv_data->prim_channels`
1209.  * FIXME add arguments
1210.  */
1211. static int dca_decode_frame(AVCodecContext * avctx,
      ^
1212.                             void *data, int *data_size,
1213.                             AVPacket *avpkt)

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

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

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

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

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

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

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

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

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

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

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

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

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