libavformat/movenc.c:1819: error: Integer Overflow L1
  ([1099511627520, +oo] + `*pkt->data`):unsigned32.

libavformat/movenc.c:1815:5: <LHS trace>
1813. static int mov_parse_mpeg2_frame(AVPacket *pkt, uint32_t *flags)
1814. {
1815.     uint32_t c = -1;
          ^
1816.     int i, closed_gop = 0;
1817. 

libavformat/movenc.c:1815:5: Assignment
1813. static int mov_parse_mpeg2_frame(AVPacket *pkt, uint32_t *flags)
1814. {
1815.     uint32_t c = -1;
          ^
1816.     int i, closed_gop = 0;
1817. 

libavformat/movenc.c:1813:1: <RHS trace>
1811. }
1812. 
1813. static int mov_parse_mpeg2_frame(AVPacket *pkt, uint32_t *flags)
      ^
1814. {
1815.     uint32_t c = -1;

libavformat/movenc.c:1813:1: Parameter `*pkt->data`
1811. }
1812. 
1813. static int mov_parse_mpeg2_frame(AVPacket *pkt, uint32_t *flags)
      ^
1814. {
1815.     uint32_t c = -1;

libavformat/movenc.c:1819:9: Binary operation: ([1099511627520, +oo] + *pkt->data):unsigned32
1817. 
1818.     for (i = 0; i < pkt->size - 4; i++) {
1819.         c = (c<<8) + pkt->data[i];
              ^
1820.         if (c == 0x1b8) { // gop
1821.             closed_gop = pkt->data[i+4]>>6 & 0x01;

static int mov_parse_mpeg2_frame(AVPacket *pkt, uint32_t *flags)
{
    uint32_t c = -1;
    int i, closed_gop = 0;
    for (i = 0; i < pkt->size - 4; i++) {
        c = (c<<8) + pkt->data[i];
        if (c == 0x1b8) {
            closed_gop = pkt->data[i+4]>>6 & 0x01;
        } else if (c == 0x100) {
            int temp_ref = (pkt->data[i+1]<<2) | (pkt->data[i+2]>>6);
            if (!temp_ref || closed_gop)
                *flags = MOV_SYNC_SAMPLE;
            else
                *flags = MOV_PARTIAL_SYNC_SAMPLE;
            break;
        }
    }
    return 0;
}
['static int mov_parse_mpeg2_frame(AVPacket *pkt, uint32_t *flags)\n{\n    uint32_t c = -1;\n    int i, closed_gop = 0;\n    for (i = 0; i < pkt->size - 4; i++) {\n        c = (c<<8) + pkt->data[i];\n        if (c == 0x1b8) {\n            closed_gop = pkt->data[i+4]>>6 & 0x01;\n        } else if (c == 0x100) {\n            int temp_ref = (pkt->data[i+1]<<2) | (pkt->data[i+2]>>6);\n            if (!temp_ref || closed_gop)\n                *flags = MOV_SYNC_SAMPLE;\n            else\n                *flags = MOV_PARTIAL_SYNC_SAMPLE;\n            break;\n        }\n    }\n    return 0;\n}']