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

libavcodec/h264.c:3274:9: Assignment
3272.     h->droppable       = h->nal_ref_idc == 0;
3273.     if (h->sps.frame_mbs_only_flag) {
3274.         h->picture_structure = PICT_FRAME;
              ^
3275.     } else {
3276.         if (get_bits1(&h->gb)) { // field_pic_flag

libavcodec/h264.c:3487:5: Call
3485.     }
3486. 
3487.     init_poc(h);
          ^
3488. 
3489.     if (h->pps.redundant_pic_cnt_present)

libavcodec/h264.c:2643:1: Parameter `h->picture_structure`
  2641. }
  2642. 
  2643. static int init_poc(H264Context *h)
        ^
  2644. {
  2645.     const int max_frame_num = 1 << h->sps.log2_max_frame_num;

libavcodec/h264.c:3545:9: Call
3543.     else if (h->pps.weighted_bipred_idc == 2 &&
3544.              h->slice_type_nos == AV_PICTURE_TYPE_B) {
3545.         implicit_weight_table(h, -1);
              ^
3546.     } else {
3547.         h->use_weight = 0;

libavcodec/h264.c:2521:1: <Offset trace>
2519.  *                -1 initializes the rest
2520.  */
2521. static void implicit_weight_table(H264Context *h, int field)
      ^
2522. {
2523.     int ref0, ref1, i, cur_poc, ref_start, ref_count0, ref_count1;

libavcodec/h264.c:2521:1: Parameter `h->picture_structure`
  2519.  *                -1 initializes the rest
  2520.  */
  2521. static void implicit_weight_table(H264Context *h, int field)
        ^
  2522. {
  2523.     int ref0, ref1, i, cur_poc, ref_start, ref_count0, ref_count1;

libavcodec/h264.c:2521:1: <Length trace>
2519.  *                -1 initializes the rest
2520.  */
2521. static void implicit_weight_table(H264Context *h, int field)
      ^
2522. {
2523.     int ref0, ref1, i, cur_poc, ref_start, ref_count0, ref_count1;

libavcodec/h264.c:2521:1: Parameter `h->cur_pic_ptr->field_poc[*]`
  2519.  *                -1 initializes the rest
  2520.  */
  2521. static void implicit_weight_table(H264Context *h, int field)
        ^
  2522. {
  2523.     int ref0, ref1, i, cur_poc, ref_start, ref_count0, ref_count1;

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