libavcodec/h264_slice.c:1394: 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:912:1: Parameter `h->picture_structure`
910.  * @return 0 if okay, <0 if an error occurred
911.  */
912. int ff_h264_decode_slice_header(H264Context *h, H264SliceContext *sl)
     ^
913. {
914.     const SPS *sps;

libavcodec/h264_slice.c:1393:13: Call
1391. 
1392.         if (pps->weighted_bipred_idc == 2 && sl->slice_type_nos == AV_PICTURE_TYPE_B) {
1393.             implicit_weight_table(h, sl, 0);
                  ^
1394.             implicit_weight_table(h, sl, 1);
1395.         }

libavcodec/h264_slice.c:610:1: Parameter `h->picture_structure`
  608.  *                -1 initializes the rest
  609.  */
  610. static void implicit_weight_table(const H264Context *h, H264SliceContext *sl, int field)
       ^
  611. {
  612.     int ref0, ref1, i, cur_poc, ref_start, ref_count0, ref_count1;

libavcodec/h264_slice.c:1394:13: Call
1392.         if (pps->weighted_bipred_idc == 2 && sl->slice_type_nos == AV_PICTURE_TYPE_B) {
1393.             implicit_weight_table(h, sl, 0);
1394.             implicit_weight_table(h, sl, 1);
                  ^
1395.         }
1396.     }

libavcodec/h264_slice.c:610:1: <Offset trace>
608.  *                -1 initializes the rest
609.  */
610. static void implicit_weight_table(const H264Context *h, H264SliceContext *sl, int field)
     ^
611. {
612.     int ref0, ref1, i, cur_poc, ref_start, ref_count0, ref_count1;

libavcodec/h264_slice.c:610:1: Parameter `h->picture_structure`
  608.  *                -1 initializes the rest
  609.  */
  610. static void implicit_weight_table(const H264Context *h, H264SliceContext *sl, int field)
       ^
  611. {
  612.     int ref0, ref1, i, cur_poc, ref_start, ref_count0, ref_count1;

libavcodec/h264_slice.c:610:1: <Length trace>
608.  *                -1 initializes the rest
609.  */
610. static void implicit_weight_table(const H264Context *h, H264SliceContext *sl, int field)
     ^
611. {
612.     int ref0, ref1, i, cur_poc, ref_start, ref_count0, ref_count1;

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

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