libavformat/mpeg.c:61: error: Integer Overflow L1
  ([1099511627520, +oo] + `*p->buf`):unsigned32.

libavformat/mpeg.c:55:5: <LHS trace>
53. static int mpegps_probe(AVProbeData *p)
54. {
55.     uint32_t code= -1;
        ^
56.     int sys=0, pspack=0, priv1=0, vid=0, audio=0, invalid=0;
57.     int i;

libavformat/mpeg.c:55:5: Assignment
53. static int mpegps_probe(AVProbeData *p)
54. {
55.     uint32_t code= -1;
        ^
56.     int sys=0, pspack=0, priv1=0, vid=0, audio=0, invalid=0;
57.     int i;

libavformat/mpeg.c:53:1: <RHS trace>
51. }
52. 
53. static int mpegps_probe(AVProbeData *p)
    ^
54. {
55.     uint32_t code= -1;

libavformat/mpeg.c:53:1: Parameter `*p->buf`
51. }
52. 
53. static int mpegps_probe(AVProbeData *p)
    ^
54. {
55.     uint32_t code= -1;

libavformat/mpeg.c:61:9: Binary operation: ([1099511627520, +oo] + *p->buf):unsigned32
59. 
60.     for(i=0; i<p->buf_size; i++){
61.         code = (code<<8) + p->buf[i];
            ^
62.         if ((code & 0xffffff00) == 0x100) {
63.             int len= p->buf[i+1] << 8 | p->buf[i+2];

static int mpegps_probe(AVProbeData *p)
{
    uint32_t code= -1;
    int sys=0, pspack=0, priv1=0, vid=0, audio=0, invalid=0;
    int i;
    int score=0;
    for(i=0; i<p->buf_size; i++){
        code = (code<<8) + p->buf[i];
        if ((code & 0xffffff00) == 0x100) {
            int len= p->buf[i+1] << 8 | p->buf[i+2];
            int pes= check_pes(p->buf+i, p->buf+p->buf_size);
            if(code == SYSTEM_HEADER_START_CODE) sys++;
            else if(code == PACK_START_CODE)     pspack++;
            else if((code & 0xf0) == VIDEO_ID &&  pes) vid++;
            else if((code & 0xe0) == AUDIO_ID &&  pes) {audio++; i+=len;}
            else if(code == PRIVATE_STREAM_1  &&  pes) {priv1++; i+=len;}
            else if((code & 0xf0) == VIDEO_ID && !pes) invalid++;
            else if((code & 0xe0) == AUDIO_ID && !pes) invalid++;
            else if(code == PRIVATE_STREAM_1  && !pes) invalid++;
        }
    }
    if(vid+audio > invalid)
        score= AVPROBE_SCORE_MAX/4;
    if(sys>invalid && sys*9 <= pspack*10)
        return pspack > 2 ? AVPROBE_SCORE_MAX/2+2 : AVPROBE_SCORE_MAX/4;
    if(pspack > invalid && (priv1+vid+audio)*10 >= pspack*9)
        return pspack > 2 ? AVPROBE_SCORE_MAX/2+2 : AVPROBE_SCORE_MAX/4;
    if((!!vid ^ !!audio) && (audio > 4 || vid > 1) && !sys && !pspack && p->buf_size>2048 && vid + audio > invalid)
        return (audio > 12 || vid > 3) ? AVPROBE_SCORE_MAX/2+2 : AVPROBE_SCORE_MAX/4;
    return score;
}
['static int mpegps_probe(AVProbeData *p)\n{\n    uint32_t code= -1;\n    int sys=0, pspack=0, priv1=0, vid=0, audio=0, invalid=0;\n    int i;\n    int score=0;\n    for(i=0; i<p->buf_size; i++){\n        code = (code<<8) + p->buf[i];\n        if ((code & 0xffffff00) == 0x100) {\n            int len= p->buf[i+1] << 8 | p->buf[i+2];\n            int pes= check_pes(p->buf+i, p->buf+p->buf_size);\n            if(code == SYSTEM_HEADER_START_CODE) sys++;\n            else if(code == PACK_START_CODE)     pspack++;\n            else if((code & 0xf0) == VIDEO_ID &&  pes) vid++;\n            else if((code & 0xe0) == AUDIO_ID &&  pes) {audio++; i+=len;}\n            else if(code == PRIVATE_STREAM_1  &&  pes) {priv1++; i+=len;}\n            else if((code & 0xf0) == VIDEO_ID && !pes) invalid++;\n            else if((code & 0xe0) == AUDIO_ID && !pes) invalid++;\n            else if(code == PRIVATE_STREAM_1  && !pes) invalid++;\n        }\n    }\n    if(vid+audio > invalid)\n        score= AVPROBE_SCORE_MAX/4;\n    if(sys>invalid && sys*9 <= pspack*10)\n        return pspack > 2 ? AVPROBE_SCORE_MAX/2+2 : AVPROBE_SCORE_MAX/4;\n    if(pspack > invalid && (priv1+vid+audio)*10 >= pspack*9)\n        return pspack > 2 ? AVPROBE_SCORE_MAX/2+2 : AVPROBE_SCORE_MAX/4;\n    if((!!vid ^ !!audio) && (audio > 4 || vid > 1) && !sys && !pspack && p->buf_size>2048 && vid + audio > invalid)\n        return (audio > 12 || vid > 3) ? AVPROBE_SCORE_MAX/2+2 : AVPROBE_SCORE_MAX/4;\n    return score;\n}']