libavcodec/h264_slice.c:1508: error: Buffer Overrun L2
  Offset: [-1+min(1, `h->picture_structure`), -1+max(3, `h->picture_structure`)] Size: 2 by call to `implicit_weight_table`.

libavcodec/h264_slice.c:1003:1: Parameter `h->picture_structure`
1001.  * @return 0 if okay, <0 if an error occurred, 1 if decoding must not be multithreaded
1002.  */
1003. int ff_h264_decode_slice_header(H264Context *h, H264SliceContext *sl)
      ^
1004. {
1005.     unsigned int first_mb_in_slice;

libavcodec/h264_slice.c:1507:13: Call
1505. 
1506.         if (h->pps.weighted_bipred_idc == 2 && sl->slice_type_nos == AV_PICTURE_TYPE_B) {
1507.             implicit_weight_table(h, sl, 0);
                  ^
1508.             implicit_weight_table(h, sl, 1);
1509.         }

libavcodec/h264_slice.c:688:1: Parameter `h->picture_structure`
  686.  *                -1 initializes the rest
  687.  */
  688. static void implicit_weight_table(const H264Context *h, H264SliceContext *sl, int field)
       ^
  689. {
  690.     int ref0, ref1, i, cur_poc, ref_start, ref_count0, ref_count1;

libavcodec/h264_slice.c:1508:13: Call
1506.         if (h->pps.weighted_bipred_idc == 2 && sl->slice_type_nos == AV_PICTURE_TYPE_B) {
1507.             implicit_weight_table(h, sl, 0);
1508.             implicit_weight_table(h, sl, 1);
                  ^
1509.         }
1510.     }

libavcodec/h264_slice.c:688:1: <Offset trace>
686.  *                -1 initializes the rest
687.  */
688. static void implicit_weight_table(const H264Context *h, H264SliceContext *sl, int field)
     ^
689. {
690.     int ref0, ref1, i, cur_poc, ref_start, ref_count0, ref_count1;

libavcodec/h264_slice.c:688:1: Parameter `h->picture_structure`
  686.  *                -1 initializes the rest
  687.  */
  688. static void implicit_weight_table(const H264Context *h, H264SliceContext *sl, int field)
       ^
  689. {
  690.     int ref0, ref1, i, cur_poc, ref_start, ref_count0, ref_count1;

libavcodec/h264_slice.c:688:1: <Length trace>
686.  *                -1 initializes the rest
687.  */
688. static void implicit_weight_table(const H264Context *h, H264SliceContext *sl, int field)
     ^
689. {
690.     int ref0, ref1, i, cur_poc, ref_start, ref_count0, ref_count1;

libavcodec/h264_slice.c:688:1: Parameter `h->cur_pic_ptr->field_poc[*]`
  686.  *                -1 initializes the rest
  687.  */
  688. static void implicit_weight_table(const H264Context *h, H264SliceContext *sl, int field)
       ^
  689. {
  690.     int ref0, ref1, i, cur_poc, ref_start, ref_count0, ref_count1;

libavcodec/h264_slice.c:701:23: Array access: Offset: [-1+min(1, h->picture_structure), -1+max(3, h->picture_structure)] Size: 2 by call to `implicit_weight_table` 
  699.             cur_poc = h->cur_pic_ptr->poc;
  700.         } else {
  701.             cur_poc = h->cur_pic_ptr->field_poc[h->picture_structure - 1];
                             ^
  702.         }
  703.         if (sl->ref_count[0] == 1 && sl->ref_count[1] == 1 && !FRAME_MBAFF(h) &&
