libavcodec/h264.c:3687: error: Buffer Overrun L2
  Offset: [0, 2] Size: 2 by call to `implicit_weight_table`.

libavcodec/h264.c:3439:9: Assignment
3437.     h->droppable       = h->nal_ref_idc == 0;
3438.     if (h->sps.frame_mbs_only_flag) {
3439.         h->picture_structure = PICT_FRAME;
              ^
3440.     } else {
3441.         field_pic_flag = get_bits1(&h->gb);

libavcodec/h264.c:3661:5: Call
3659.     }
3660. 
3661.     ff_init_poc(h, h->cur_pic_ptr->field_poc, &h->cur_pic_ptr->poc);
          ^
3662. 
3663.     if (h->pps.redundant_pic_cnt_present)

libavcodec/h264.c:2746:1: Parameter `h->picture_structure`
  2744. }
  2745. 
  2746. int ff_init_poc(H264Context *h, int pic_field_poc[2], int *pic_poc)
        ^
  2747. {
  2748.     const int max_frame_num = 1 << h->sps.log2_max_frame_num;

libavcodec/h264.c:3666:11: Call
3664.         h->redundant_pic_count = get_ue_golomb(&h->gb);
3665. 
3666.     ret = ff_set_ref_count(h);
                ^
3667.     if (ret < 0)
3668.         return ret;

libavcodec/h264.c:3201:1: Parameter `h->picture_structure`
  3199. }
  3200. 
  3201. int ff_set_ref_count(H264Context *h)
        ^
  3202. {
  3203.     int num_ref_idx_active_override_flag, max_refs;

libavcodec/h264.c:3687:9: Call
3685.     else if (h->pps.weighted_bipred_idc == 2 &&
3686.              h->slice_type_nos == AV_PICTURE_TYPE_B) {
3687.         implicit_weight_table(h, -1);
              ^
3688.     } else {
3689.         h->use_weight = 0;

libavcodec/h264.c:2624:1: <Offset trace>
2622.  *                -1 initializes the rest
2623.  */
2624. static void implicit_weight_table(H264Context *h, int field)
      ^
2625. {
2626.     int ref0, ref1, i, cur_poc, ref_start, ref_count0, ref_count1;

libavcodec/h264.c:2624:1: Parameter `h->picture_structure`
  2622.  *                -1 initializes the rest
  2623.  */
  2624. static void implicit_weight_table(H264Context *h, int field)
        ^
  2625. {
  2626.     int ref0, ref1, i, cur_poc, ref_start, ref_count0, ref_count1;

libavcodec/h264.c:2624:1: <Length trace>
2622.  *                -1 initializes the rest
2623.  */
2624. static void implicit_weight_table(H264Context *h, int field)
      ^
2625. {
2626.     int ref0, ref1, i, cur_poc, ref_start, ref_count0, ref_count1;

libavcodec/h264.c:2624:1: Parameter `h->cur_pic_ptr->field_poc[*]`
  2622.  *                -1 initializes the rest
  2623.  */
  2624. static void implicit_weight_table(H264Context *h, int field)
        ^
  2625. {
  2626.     int ref0, ref1, i, cur_poc, ref_start, ref_count0, ref_count1;

libavcodec/h264.c:2637:23: Array access: Offset: [0, 2] Size: 2 by call to `implicit_weight_table` 
  2635.             cur_poc = h->cur_pic_ptr->poc;
  2636.         } else {
  2637.             cur_poc = h->cur_pic_ptr->field_poc[h->picture_structure - 1];
                              ^
  2638.         }
  2639.         if (h->ref_count[0] == 1 && h->ref_count[1] == 1 && !FRAME_MBAFF(h) &&
