libavformat/ncdec.c:71: error: Integer Overflow L1
  ([1099511627520, +oo] + [0, +oo]):unsigned32.

libavformat/ncdec.c:67:5: <LHS trace>
65.     int ret;
66. 
67.     uint32_t state=-1;
        ^
68.     while (state != NC_VIDEO_FLAG) {
69.         if (url_feof(s->pb))

libavformat/ncdec.c:67:5: Assignment
65.     int ret;
66. 
67.     uint32_t state=-1;
        ^
68.     while (state != NC_VIDEO_FLAG) {
69.         if (url_feof(s->pb))

libavformat/ncdec.c:71:30: <RHS trace>
69.         if (url_feof(s->pb))
70.             return AVERROR(EIO);
71.         state = (state<<8) + get_byte(s->pb);
                                 ^
72.     }
73. 

libavformat/ncdec.c:71:30: Call
69.         if (url_feof(s->pb))
70.             return AVERROR(EIO);
71.         state = (state<<8) + get_byte(s->pb);
                                 ^
72.     }
73. 

libavformat/aviobuf.c:361:13: Assignment
  359.             return *s->buf_ptr++;
  360.         else
  361.             return 0;
                   ^
  362.     }
  363. }

libavformat/ncdec.c:71:9: Binary operation: ([1099511627520, +oo] + [0, +oo]):unsigned32
69.         if (url_feof(s->pb))
70.             return AVERROR(EIO);
71.         state = (state<<8) + get_byte(s->pb);
            ^
72.     }
73. 

static int nc_read_packet(AVFormatContext *s, AVPacket *pkt)
{
    int size;
    int ret;
    uint32_t state=-1;
    while (state != NC_VIDEO_FLAG) {
        if (url_feof(s->pb))
            return AVERROR(EIO);
        state = (state<<8) + get_byte(s->pb);
    }
    get_byte(s->pb);
    size = get_le16(s->pb);
    url_fskip(s->pb, 9);
    if (size == 0) {
        av_log(s, AV_LOG_DEBUG, "Next packet size is zero\n");
        return AVERROR(EAGAIN);
    }
    ret = av_get_packet(s->pb, pkt, size);
    if (ret != size) {
        if (ret > 0) av_free_packet(pkt);
        return AVERROR(EIO);
    }
    pkt->stream_index = 0;
    return size;
}
['static int nc_read_packet(AVFormatContext *s, AVPacket *pkt)\n{\n    int size;\n    int ret;\n    uint32_t state=-1;\n    while (state != NC_VIDEO_FLAG) {\n        if (url_feof(s->pb))\n            return AVERROR(EIO);\n        state = (state<<8) + get_byte(s->pb);\n    }\n    get_byte(s->pb);\n    size = get_le16(s->pb);\n    url_fskip(s->pb, 9);\n    if (size == 0) {\n        av_log(s, AV_LOG_DEBUG, "Next packet size is zero\\n");\n        return AVERROR(EAGAIN);\n    }\n    ret = av_get_packet(s->pb, pkt, size);\n    if (ret != size) {\n        if (ret > 0) av_free_packet(pkt);\n        return AVERROR(EIO);\n    }\n    pkt->stream_index = 0;\n    return size;\n}', 'int get_byte(ByteIOContext *s)\n{\n    if (s->buf_ptr < s->buf_end) {\n        return *s->buf_ptr++;\n    } else {\n        fill_buffer(s);\n        if (s->buf_ptr < s->buf_end)\n            return *s->buf_ptr++;\n        else\n            return 0;\n    }\n}']