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

libavcodec/h264.c:3155:9: Assignment
3153.     h->droppable       = h->nal_ref_idc == 0;
3154.     if (h->sps.frame_mbs_only_flag) {
3155.         h->picture_structure = PICT_FRAME;
              ^
3156.     } else {
3157.         if (get_bits1(&h->gb)) { // field_pic_flag

libavcodec/h264.c:3383:5: Call
3381.     }
3382. 
3383.     init_poc(h);
          ^
3384. 
3385.     if (h->pps.redundant_pic_cnt_present)

libavcodec/h264.c:2506:1: Parameter `h->picture_structure`
  2504. }
  2505. 
  2506. static int init_poc(H264Context *h)
        ^
  2507. {
  2508.     const int max_frame_num = 1 << h->sps.log2_max_frame_num;

libavcodec/h264.c:3438:9: Call
3436.     else if (h->pps.weighted_bipred_idc == 2 &&
3437.              h->slice_type_nos == AV_PICTURE_TYPE_B) {
3438.         implicit_weight_table(h, -1);
              ^
3439.     } else {
3440.         h->use_weight = 0;

libavcodec/h264.c:2384:1: <Offset trace>
2382.  *                -1 initializes the rest
2383.  */
2384. static void implicit_weight_table(H264Context *h, int field)
      ^
2385. {
2386.     int ref0, ref1, i, cur_poc, ref_start, ref_count0, ref_count1;

libavcodec/h264.c:2384:1: Parameter `h->picture_structure`
  2382.  *                -1 initializes the rest
  2383.  */
  2384. static void implicit_weight_table(H264Context *h, int field)
        ^
  2385. {
  2386.     int ref0, ref1, i, cur_poc, ref_start, ref_count0, ref_count1;

libavcodec/h264.c:2384:1: <Length trace>
2382.  *                -1 initializes the rest
2383.  */
2384. static void implicit_weight_table(H264Context *h, int field)
      ^
2385. {
2386.     int ref0, ref1, i, cur_poc, ref_start, ref_count0, ref_count1;

libavcodec/h264.c:2384:1: Parameter `h->cur_pic_ptr->field_poc[*]`
  2382.  *                -1 initializes the rest
  2383.  */
  2384. static void implicit_weight_table(H264Context *h, int field)
        ^
  2385. {
  2386.     int ref0, ref1, i, cur_poc, ref_start, ref_count0, ref_count1;

libavcodec/h264.c:2397:23: Array access: Offset: [0, 2] Size: 2 by call to `implicit_weight_table` 
  2395.             cur_poc = h->cur_pic_ptr->poc;
  2396.         } else {
  2397.             cur_poc = h->cur_pic_ptr->field_poc[h->picture_structure - 1];
                              ^
  2398.         }
  2399.         if (h->ref_count[0] == 1 && h->ref_count[1] == 1 && !FRAME_MBAFF &&
