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

libavformat/raw.c:336:5: <LHS trace>
334. static int cavsvideo_probe(AVProbeData *p)
335. {
336.     uint32_t code= -1;
         ^
337.     int pic=0, seq=0, slice_pos = 0;
338.     int i;

libavformat/raw.c:336:5: Assignment
334. static int cavsvideo_probe(AVProbeData *p)
335. {
336.     uint32_t code= -1;
         ^
337.     int pic=0, seq=0, slice_pos = 0;
338.     int i;

libavformat/raw.c:334:1: <RHS trace>
332. #define CAVS_PROFILE_JIZHUN       0x20
333. 
334. static int cavsvideo_probe(AVProbeData *p)
     ^
335. {
336.     uint32_t code= -1;

libavformat/raw.c:334:1: Parameter `*p->buf`
332. #define CAVS_PROFILE_JIZHUN       0x20
333. 
334. static int cavsvideo_probe(AVProbeData *p)
     ^
335. {
336.     uint32_t code= -1;

libavformat/raw.c:341:9: Binary operation: ([1099511627520, +oo] + *p->buf):unsigned32
339. 
340.     for(i=0; i<p->buf_size; i++){
341.         code = (code<<8) + p->buf[i];
             ^
342.         if ((code & 0xffffff00) == 0x100) {
343.             if(code < CAVS_SEQ_START_CODE) {

static int cavsvideo_probe(AVProbeData *p)
{
    uint32_t code= -1;
    int pic=0, seq=0, slice_pos = 0;
    int i;
    for(i=0; i<p->buf_size; i++){
        code = (code<<8) + p->buf[i];
        if ((code & 0xffffff00) == 0x100) {
            if(code < CAVS_SEQ_START_CODE) {
                if(code < slice_pos)
                    return 0;
                slice_pos = code;
            } else {
                slice_pos = 0;
            }
            if (code == CAVS_SEQ_START_CODE) {
                seq++;
                if(p->buf[i+1] != CAVS_PROFILE_JIZHUN)
                    return 0;
            } else if ((code == CAVS_PIC_I_START_CODE) ||
                       (code == CAVS_PIC_PB_START_CODE)) {
                pic++;
            } else if ((code == CAVS_UNDEF_START_CODE) ||
                       (code >  CAVS_VIDEO_EDIT_CODE)) {
                return 0;
            }
        }
    }
    if(seq && seq*9<=pic*10)
        return AVPROBE_SCORE_MAX/2;
    return 0;
}
['static int cavsvideo_probe(AVProbeData *p)\n{\n    uint32_t code= -1;\n    int pic=0, seq=0, slice_pos = 0;\n    int i;\n    for(i=0; i<p->buf_size; i++){\n        code = (code<<8) + p->buf[i];\n        if ((code & 0xffffff00) == 0x100) {\n            if(code < CAVS_SEQ_START_CODE) {\n                if(code < slice_pos)\n                    return 0;\n                slice_pos = code;\n            } else {\n                slice_pos = 0;\n            }\n            if (code == CAVS_SEQ_START_CODE) {\n                seq++;\n                if(p->buf[i+1] != CAVS_PROFILE_JIZHUN)\n                    return 0;\n            } else if ((code == CAVS_PIC_I_START_CODE) ||\n                       (code == CAVS_PIC_PB_START_CODE)) {\n                pic++;\n            } else if ((code == CAVS_UNDEF_START_CODE) ||\n                       (code >  CAVS_VIDEO_EDIT_CODE)) {\n                return 0;\n            }\n        }\n    }\n    if(seq && seq*9<=pic*10)\n        return AVPROBE_SCORE_MAX/2;\n    return 0;\n}']