libavcodec/mpeg12.c:1877: error: Integer Overflow L1
  ([1099511627520, +oo] + [0, +oo]):unsigned32 by call to `avpriv_mpv_find_start_code`.

libavcodec/mpeg12.c:1876:9: Assignment
1874.             return 0;
1875. 
1876.         start_code = -1;
              ^
1877.         buf = avpriv_mpv_find_start_code(buf, s->gb.buffer_end, &start_code);
1878.         mb_y= (start_code - SLICE_MIN_START_CODE) << field_pic;

libavcodec/mpeg12.c:1877:15: Call
1875. 
1876.         start_code = -1;
1877.         buf = avpriv_mpv_find_start_code(buf, s->gb.buffer_end, &start_code);
                    ^
1878.         mb_y= (start_code - SLICE_MIN_START_CODE) << field_pic;
1879.         if (s->picture_structure == PICT_BOTTOM_FIELD)

libavcodec/mpegvideo.c:143:1: <LHS trace>
141. };
142. 
143. const uint8_t *avpriv_mpv_find_start_code(const uint8_t *restrict p,
     ^
144.                                           const uint8_t *end,
145.                                           uint32_t * restrict state)

libavcodec/mpegvideo.c:143:1: Parameter `*state`
  141. };
  142. 
  143. const uint8_t *avpriv_mpv_find_start_code(const uint8_t *restrict p,
       ^
  144.                                           const uint8_t *end,
  145.                                           uint32_t * restrict state)

libavcodec/mpegvideo.c:154:9: Assignment
  152. 
  153.     for (i = 0; i < 3; i++) {
  154.         uint32_t tmp = *state << 8;
               ^
  155.         *state = tmp + *(p++);
  156.         if (tmp == 0x100 || p == end)

libavcodec/mpegvideo.c:143:1: <RHS trace>
141. };
142. 
143. const uint8_t *avpriv_mpv_find_start_code(const uint8_t *restrict p,
     ^
144.                                           const uint8_t *end,
145.                                           uint32_t * restrict state)

libavcodec/mpegvideo.c:143:1: Parameter `*p`
  141. };
  142. 
  143. const uint8_t *avpriv_mpv_find_start_code(const uint8_t *restrict p,
       ^
  144.                                           const uint8_t *end,
  145.                                           uint32_t * restrict state)

libavcodec/mpegvideo.c:155:9: Binary operation: ([1099511627520, +oo] + [0, +oo]):unsigned32 by call to `avpriv_mpv_find_start_code` 
  153.     for (i = 0; i < 3; i++) {
  154.         uint32_t tmp = *state << 8;
  155.         *state = tmp + *(p++);
               ^
  156.         if (tmp == 0x100 || p == end)
  157.             return p;
