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

libavcodec/h264.c:3307:9: Assignment
3305.     h->droppable       = h->nal_ref_idc == 0;
3306.     if (h->sps.frame_mbs_only_flag) {
3307.         h->picture_structure = PICT_FRAME;
              ^
3308.     } else {
3309.         field_pic_flag = get_bits1(&h->gb);

libavcodec/h264.c:3529:5: Call
3527.     }
3528. 
3529.     ff_init_poc(h, h->cur_pic_ptr->field_poc, &h->cur_pic_ptr->poc);
          ^
3530. 
3531.     if (h->pps.redundant_pic_cnt_present)

libavcodec/h264.c:2658:1: Parameter `h->picture_structure`
  2656. }
  2657. 
  2658. int ff_init_poc(H264Context *h, int pic_field_poc[2], int *pic_poc)
        ^
  2659. {
  2660.     const int max_frame_num = 1 << h->sps.log2_max_frame_num;

libavcodec/h264.c:3588:9: Call
3586.     else if (h->pps.weighted_bipred_idc == 2 &&
3587.              h->slice_type_nos == AV_PICTURE_TYPE_B) {
3588.         implicit_weight_table(h, -1);
              ^
3589.     } else {
3590.         h->use_weight = 0;

libavcodec/h264.c:2536:1: <Offset trace>
2534.  *                -1 initializes the rest
2535.  */
2536. static void implicit_weight_table(H264Context *h, int field)
      ^
2537. {
2538.     int ref0, ref1, i, cur_poc, ref_start, ref_count0, ref_count1;

libavcodec/h264.c:2536:1: Parameter `h->picture_structure`
  2534.  *                -1 initializes the rest
  2535.  */
  2536. static void implicit_weight_table(H264Context *h, int field)
        ^
  2537. {
  2538.     int ref0, ref1, i, cur_poc, ref_start, ref_count0, ref_count1;

libavcodec/h264.c:2536:1: <Length trace>
2534.  *                -1 initializes the rest
2535.  */
2536. static void implicit_weight_table(H264Context *h, int field)
      ^
2537. {
2538.     int ref0, ref1, i, cur_poc, ref_start, ref_count0, ref_count1;

libavcodec/h264.c:2536:1: Parameter `h->cur_pic_ptr->field_poc[*]`
  2534.  *                -1 initializes the rest
  2535.  */
  2536. static void implicit_weight_table(H264Context *h, int field)
        ^
  2537. {
  2538.     int ref0, ref1, i, cur_poc, ref_start, ref_count0, ref_count1;

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