libavformat/rtpdec_h263_rfc2190.c:147: error: Integer Overflow L2
  ([0, 64] - [0, 64]):unsigned32 by call to `bitstream_skip`.

libavformat/rtpdec_h263_rfc2190.c:146:13: Call
144.             /* Start/end skip bits not matching - missed packets? */
145.             BitstreamContext bc;
146.             bitstream_init(&bc, buf, len * 8 - ebit);
                 ^
147.             bitstream_skip(&bc, sbit);
148.             if (data->endbyte_bits) {

libavcodec/bitstream.h:84:9: Assignment
  82.         bc->buffer    =
  83.         bc->ptr       = NULL;
  84.         bc->bits_left = 0;
              ^
  85.         return AVERROR_INVALIDDATA;
  86.     }

libavformat/rtpdec_h263_rfc2190.c:147:13: Call
145.             BitstreamContext bc;
146.             bitstream_init(&bc, buf, len * 8 - ebit);
147.             bitstream_skip(&bc, sbit);
                 ^
148.             if (data->endbyte_bits) {
149.                 data->endbyte |= bitstream_read(&bc, 8 - data->endbyte_bits);

libavcodec/bitstream.h:240:1: Parameter `n`
  238. 
  239. /* Skip n bits in the buffer. */
  240. static inline void bitstream_skip(BitstreamContext *bc, unsigned n)
       ^
  241. {
  242.     if (n <= bc->bits_left)

libavcodec/bitstream.h:246:9: Call
  244.     else {
  245.         n -= bc->bits_left;
  246.         skip_remaining(bc, bc->bits_left);
               ^
  247.         if (n >= 64) {
  248.             unsigned skip = n / 8;

libavcodec/bitstream.h:229:1: <LHS trace>
227. }
228. 
229. static inline void skip_remaining(BitstreamContext *bc, unsigned n)
     ^
230. {
231. #ifdef BITSTREAM_READER_LE

libavcodec/bitstream.h:229:1: Parameter `bc->bits_left`
    227. }
    228. 
    229. static inline void skip_remaining(BitstreamContext *bc, unsigned n)
         ^
    230. {
    231. #ifdef BITSTREAM_READER_LE

libavcodec/bitstream.h:229:1: <RHS trace>
227. }
228. 
229. static inline void skip_remaining(BitstreamContext *bc, unsigned n)
     ^
230. {
231. #ifdef BITSTREAM_READER_LE

libavcodec/bitstream.h:229:1: Parameter `n`
    227. }
    228. 
    229. static inline void skip_remaining(BitstreamContext *bc, unsigned n)
         ^
    230. {
    231. #ifdef BITSTREAM_READER_LE

libavcodec/bitstream.h:236:5: Binary operation: ([0, 64] - [0, 64]):unsigned32 by call to `bitstream_skip` 
    234.     bc->bits <<= n;
    235. #endif
    236.     bc->bits_left -= n;
             ^
    237. }
    238. 

static inline void skip_remaining(BitstreamContext *bc, unsigned n)
{
#ifdef BITSTREAM_READER_LE
    bc->bits >>= n;
#else
    bc->bits <<= n;
#endif
    bc->bits_left -= n;
}
['static int h263_handle_packet(AVFormatContext *ctx, PayloadContext *data,\n                              AVStream *st, AVPacket *pkt, uint32_t *timestamp,\n                              const uint8_t *buf, int len, uint16_t seq,\n                              int flags)\n{\n    int f, p, i, sbit, ebit, src, r;\n    int header_size, ret;\n    if (data->newformat)\n        return ff_h263_handle_packet(ctx, data, st, pkt, timestamp, buf, len,\n                                     seq, flags);\n    if (data->buf && data->timestamp != *timestamp) {\n        ffio_free_dyn_buf(&data->buf);\n        data->endbyte_bits = 0;\n    }\n    if (len < 4) {\n        av_log(ctx, AV_LOG_ERROR, "Too short H.263 RTP packet: %d\\n", len);\n        return AVERROR_INVALIDDATA;\n    }\n    f = buf[0] & 0x80;\n    p = buf[0] & 0x40;\n    if (!f) {\n        header_size = 4;\n        i = buf[1] & 0x10;\n        r = ((buf[1] & 0x01) << 3) | ((buf[2] & 0xe0) >> 5);\n    } else if (!p) {\n        header_size = 8;\n        if (len < header_size) {\n            av_log(ctx, AV_LOG_ERROR,\n                   "Too short H.263 RTP packet: %d bytes, %d header bytes\\n",\n                   len, header_size);\n            return AVERROR_INVALIDDATA;\n        }\n        r = buf[3] & 0x03;\n        i = buf[4] & 0x80;\n    } else {\n        header_size = 12;\n        if (len < header_size) {\n            av_log(ctx, AV_LOG_ERROR,\n                   "Too short H.263 RTP packet: %d bytes, %d header bytes\\n",\n                   len, header_size);\n            return AVERROR_INVALIDDATA;\n        }\n        r = buf[3] & 0x03;\n        i = buf[4] & 0x80;\n    }\n    sbit = (buf[0] >> 3) & 0x7;\n    ebit =  buf[0]       & 0x7;\n    src  = (buf[1] & 0xe0) >> 5;\n    if (!(buf[0] & 0xf8)) {\n        if ((src == 0 || src >= 6) && r) {\n            av_log(ctx, AV_LOG_WARNING,\n                   "Interpreting H.263 RTP data as RFC 2429/4629 even though "\n                   "signalled with a static payload type.\\n");\n            data->newformat = 1;\n            return ff_h263_handle_packet(ctx, data, st, pkt, timestamp, buf,\n                                         len, seq, flags);\n        }\n    }\n    buf += header_size;\n    len -= header_size;\n    if (!data->buf) {\n        if (len > 4 && AV_RB32(buf) >> 10 == 0x20) {\n            ret = avio_open_dyn_buf(&data->buf);\n            if (ret < 0)\n                return ret;\n            data->timestamp = *timestamp;\n        } else {\n            return AVERROR(EAGAIN);\n        }\n    }\n    if (data->endbyte_bits || sbit) {\n        if (data->endbyte_bits == sbit) {\n            data->endbyte |= buf[0] & (0xff >> sbit);\n            data->endbyte_bits = 0;\n            buf++;\n            len--;\n            avio_w8(data->buf, data->endbyte);\n        } else {\n            BitstreamContext bc;\n            bitstream_init(&bc, buf, len * 8 - ebit);\n            bitstream_skip(&bc, sbit);\n            if (data->endbyte_bits) {\n                data->endbyte |= bitstream_read(&bc, 8 - data->endbyte_bits);\n                avio_w8(data->buf, data->endbyte);\n            }\n            while (bitstream_bits_left(&bc) >= 8)\n                avio_w8(data->buf, bitstream_read(&bc, 8));\n            data->endbyte_bits = bitstream_bits_left(&bc);\n            if (data->endbyte_bits)\n                data->endbyte = bitstream_read(&bc, data->endbyte_bits) <<\n                                (8 - data->endbyte_bits);\n            ebit = 0;\n            len = 0;\n        }\n    }\n    if (ebit) {\n        if (len > 0)\n            avio_write(data->buf, buf, len - 1);\n        data->endbyte_bits = 8 - ebit;\n        data->endbyte = buf[len - 1] & (0xff << ebit);\n    } else {\n        avio_write(data->buf, buf, len);\n    }\n    if (!(flags & RTP_FLAG_MARKER))\n        return AVERROR(EAGAIN);\n    if (data->endbyte_bits)\n        avio_w8(data->buf, data->endbyte);\n    data->endbyte_bits = 0;\n    ret = ff_rtp_finalize_packet(pkt, &data->buf, st->index);\n    if (ret < 0)\n        return ret;\n    if (!i)\n        pkt->flags   |= AV_PKT_FLAG_KEY;\n    return 0;\n}', 'static inline int bitstream_init(BitstreamContext *bc, const uint8_t *buffer,\n                                 unsigned bit_size)\n{\n    unsigned buffer_size;\n    if (bit_size > INT_MAX - 7 || !buffer) {\n        buffer        =\n        bc->buffer    =\n        bc->ptr       = NULL;\n        bc->bits_left = 0;\n        return AVERROR_INVALIDDATA;\n    }\n    buffer_size = (bit_size + 7) >> 3;\n    bc->buffer       = buffer;\n    bc->buffer_end   = buffer + buffer_size;\n    bc->ptr          = bc->buffer;\n    bc->size_in_bits = bit_size;\n    bc->bits_left    = 0;\n    bc->bits         = 0;\n    refill_64(bc);\n    return 0;\n}', 'static inline void bitstream_skip(BitstreamContext *bc, unsigned n)\n{\n    if (n <= bc->bits_left)\n        skip_remaining(bc, n);\n    else {\n        n -= bc->bits_left;\n        skip_remaining(bc, bc->bits_left);\n        if (n >= 64) {\n            unsigned skip = n / 8;\n            n -= skip * 8;\n            bc->ptr += skip;\n        }\n        refill_64(bc);\n        if (n)\n            skip_remaining(bc, n);\n    }\n}', 'static inline void skip_remaining(BitstreamContext *bc, unsigned n)\n{\n#ifdef BITSTREAM_READER_LE\n    bc->bits >>= n;\n#else\n    bc->bits <<= n;\n#endif\n    bc->bits_left -= n;\n}']