libavcodec/h264.c:3386: error: Buffer Overrun L1
  Offset: 510 Size: 3 by call to `ff_h264_init_cabac_states`.

libavcodec/h264.c:3382:9: Call
3380.         /* init cabac */
3381.         ff_init_cabac_states( &h->cabac);
3382.         ff_init_cabac_decoder( &h->cabac,
              ^
3383.                                s->gb.buffer + get_bits_count(&s->gb)/8,
3384.                                (get_bits_left(&s->gb) + 7)/8);

libavcodec/cabac.c:146:5: Assignment
  144. #endif
  145.     c->low+= ((*c->bytestream++)<<2) + 2;
  146.     c->range= 0x1FE;
           ^
  147. }
  148. 

libavcodec/h264.c:3386:9: Call
3384.                                (get_bits_left(&s->gb) + 7)/8);
3385. 
3386.         ff_h264_init_cabac_states(h);
              ^
3387. 
3388.         for(;;){

libavcodec/h264_cabac.c:1260:1: <Offset trace>
1258. };
1259. 
1260. void ff_h264_init_cabac_states(H264Context *h) {
      ^
1261.     MpegEncContext * const s = &h->s;
1262.     int i;

libavcodec/h264_cabac.c:1260:1: Parameter `h->cabac_init_idc`
  1258. };
  1259. 
  1260. void ff_h264_init_cabac_states(H264Context *h) {
        ^
  1261.     MpegEncContext * const s = &h->s;
  1262.     int i;

libavcodec/h264_cabac.c:360:1: <Length trace>
358. };
359. 
360. static const int8_t cabac_context_init_PB[3][1024][2] =
     ^
361. {
362.     /* i_cabac_init_idc == 0 */

libavcodec/h264_cabac.c:360:1: Array declaration
  358. };
  359. 
  360. static const int8_t cabac_context_init_PB[3][1024][2] =
       ^
  361. {
  362.     /* i_cabac_init_idc == 0 */

libavcodec/h264_cabac.c:1267:42: Array access: Offset: 510 Size: 3 by call to `ff_h264_init_cabac_states` 
  1265. 
  1266.     if( h->slice_type_nos == AV_PICTURE_TYPE_I ) tab = cabac_context_init_I;
  1267.     else                                 tab = cabac_context_init_PB[h->cabac_init_idc];
                                                 ^
  1268. 
  1269.     /* calculate pre-state */
