libavcodec/h264.c:6608: error: Buffer Overrun L2
  Offset: [0, 16] (⇐ [0, 15] + [0, 1]) Size: 16.

libavcodec/h264.c:6607:26: <Offset trace>
6605.                     int v = 0;
6606. 
6607.                     for( l = 0; !v && l < 1 + (h->slice_type_nos == FF_B_TYPE); l++ ) {
                               ^
6608.                         v |= ref2frm[l][h->ref_cache[l][b_idx]+2] != ref2frmn[l][h->ref_cache[l][bn_idx]+2] ||
6609.                              FFABS( h->mv_cache[l][b_idx][0] - h->mv_cache[l][bn_idx][0] ) >= 4 ||

libavcodec/h264.c:6607:26: Assignment
6605.                     int v = 0;
6606. 
6607.                     for( l = 0; !v && l < 1 + (h->slice_type_nos == FF_B_TYPE); l++ ) {
                               ^
6608.                         v |= ref2frm[l][h->ref_cache[l][b_idx]+2] != ref2frmn[l][h->ref_cache[l][bn_idx]+2] ||
6609.                              FFABS( h->mv_cache[l][b_idx][0] - h->mv_cache[l][bn_idx][0] ) >= 4 ||

libavcodec/h264.c:6377:1: <Length trace>
6375. }
6376. 
6377. static void filter_mb( H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize) {
      ^
6378.     MpegEncContext * const s = &h->s;
6379.     const int mb_xy= mb_x + mb_y*s->mb_stride;

libavcodec/h264.c:6377:1: Parameter `h->ref2frm[*]`
6375. }
6376. 
6377. static void filter_mb( H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize) {
      ^
6378.     MpegEncContext * const s = &h->s;
6379.     const int mb_xy= mb_x + mb_y*s->mb_stride;

libavcodec/h264.c:6498:9: Assignment
6496.         const int mbm_xy = dir == 0 ? mb_xy -1 : h->top_mb_xy;
6497.         const int mbm_type = s->current_picture.mb_type[mbm_xy];
6498.         int (*ref2frm) [48+2] = h->ref2frm[ h->slice_num          &15 ];
              ^
6499.         int (*ref2frmm)[48+2] = h->ref2frm[ h->slice_table[mbm_xy]&15 ];
6500.         int start = h->slice_table[mbm_xy] == 255 ? 1 : 0;

libavcodec/h264.c:6608:30: Array access: Offset: [0, 16] (⇐ [0, 15] + [0, 1]) Size: 16
6606. 
6607.                     for( l = 0; !v && l < 1 + (h->slice_type_nos == FF_B_TYPE); l++ ) {
6608.                         v |= ref2frm[l][h->ref_cache[l][b_idx]+2] != ref2frmn[l][h->ref_cache[l][bn_idx]+2] ||
                                   ^
6609.                              FFABS( h->mv_cache[l][b_idx][0] - h->mv_cache[l][bn_idx][0] ) >= 4 ||
6610.                              FFABS( h->mv_cache[l][b_idx][1] - h->mv_cache[l][bn_idx][1] ) >= mvy_limit;
