libavcodec/mpegvideo_parser.c:51: error: Integer Overflow L1
  ([1099511627520, +oo] + `*buf`):unsigned32 by call to `avpriv_mpv_find_start_code`.

libavcodec/mpegvideo_parser.c:34:1: Parameter `*buf`
32. 
33. 
34. static void mpegvideo_extract_headers(AVCodecParserContext *s,
    ^
35.                                       AVCodecContext *avctx,
36.                                       const uint8_t *buf, int buf_size)

libavcodec/mpegvideo_parser.c:51:14: Call
49.     while (buf < buf_end) {
50.         start_code= -1;
51.         buf= avpriv_mpv_find_start_code(buf, buf_end, &start_code);
                 ^
52.         bytes_left = buf_end - buf;
53.         switch(start_code) {

libavcodec/mpegvideo.c:177:1: <LHS trace>
175. }
176. 
177. const uint8_t *avpriv_mpv_find_start_code(const uint8_t *restrict p,
     ^
178.                                           const uint8_t *end,
179.                                           uint32_t * restrict state)

libavcodec/mpegvideo.c:177:1: Parameter `*state`
  175. }
  176. 
  177. const uint8_t *avpriv_mpv_find_start_code(const uint8_t *restrict p,
       ^
  178.                                           const uint8_t *end,
  179.                                           uint32_t * restrict state)

libavcodec/mpegvideo.c:188:9: Assignment
  186. 
  187.     for (i = 0; i < 3; i++) {
  188.         uint32_t tmp = *state << 8;
               ^
  189.         *state = tmp + *(p++);
  190.         if (tmp == 0x100 || p == end)

libavcodec/mpegvideo.c:177:1: <RHS trace>
175. }
176. 
177. const uint8_t *avpriv_mpv_find_start_code(const uint8_t *restrict p,
     ^
178.                                           const uint8_t *end,
179.                                           uint32_t * restrict state)

libavcodec/mpegvideo.c:177:1: Parameter `*p`
  175. }
  176. 
  177. const uint8_t *avpriv_mpv_find_start_code(const uint8_t *restrict p,
       ^
  178.                                           const uint8_t *end,
  179.                                           uint32_t * restrict state)

libavcodec/mpegvideo.c:189:9: Binary operation: ([1099511627520, +oo] + *buf):unsigned32 by call to `avpriv_mpv_find_start_code` 
  187.     for (i = 0; i < 3; i++) {
  188.         uint32_t tmp = *state << 8;
  189.         *state = tmp + *(p++);
               ^
  190.         if (tmp == 0x100 || p == end)
  191.             return p;
