libavcodec/indeo5.c:342: error: Integer Overflow L2
  ([0, +oo] - 3):unsigned32 by call to `bitstream_skip`.

libavcodec/indeo5.c:337:15: Call
335. 
336.         /* decode macroblock huffman codebook */
337.         ret = ff_ivi_dec_huff_desc(&ctx->bc, ctx->frame_flags & 0x40,
                   ^
338.                                    IVI_MB_HUFF, &ctx->mb_vlc, avctx);
339.         if (ret < 0)

libavcodec/ivi.c:228:1: Parameter `bc->bits_left`
  226. }
  227. 
  228. int ff_ivi_dec_huff_desc(BitstreamContext *bc, int desc_coded, int which_tab,
       ^
  229.                          IVIHuffTab *huff_tab, AVCodecContext *avctx)
  230. {

libavcodec/indeo5.c:342:9: Call
340.             return ret;
341. 
342.         bitstream_skip(&ctx->bc, 3); /* FIXME: unknown meaning! */
             ^
343.     }
344. 

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

libavcodec/bitstream.h:244:9: Call
  242. {
  243.     if (n <= bc->bits_left)
  244.         skip_remaining(bc, n);
               ^
  245.     else {
  246.         n -= bc->bits_left;

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

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

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

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

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

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 decode_pic_hdr(IVI45DecContext *ctx, AVCodecContext *avctx)\n{\n    int ret;\n    if (bitstream_read(&ctx->bc, 5) != 0x1F) {\n        av_log(avctx, AV_LOG_ERROR, "Invalid picture start code!\\n");\n        return AVERROR_INVALIDDATA;\n    }\n    ctx->prev_frame_type = ctx->frame_type;\n    ctx->frame_type      = bitstream_read(&ctx->bc, 3);\n    if (ctx->frame_type >= 5) {\n        av_log(avctx, AV_LOG_ERROR, "Invalid frame type: %d \\n", ctx->frame_type);\n        return AVERROR_INVALIDDATA;\n    }\n    ctx->frame_num = bitstream_read(&ctx->bc, 8);\n    if (ctx->frame_type == FRAMETYPE_INTRA) {\n        if ((ret = decode_gop_header(ctx, avctx)) < 0) {\n            av_log(avctx, AV_LOG_ERROR, "Invalid GOP header, skipping frames.\\n");\n            ctx->gop_invalid = 1;\n            return ret;\n        }\n        ctx->gop_invalid = 0;\n    }\n    if (ctx->frame_type != FRAMETYPE_NULL) {\n        ctx->frame_flags = bitstream_read(&ctx->bc, 8);\n        ctx->pic_hdr_size = (ctx->frame_flags & 1) ? bitstream_read(&ctx->bc, 24) : 0;\n        ctx->checksum = (ctx->frame_flags & 0x10) ? bitstream_read(&ctx->bc, 16) : 0;\n        if (ctx->frame_flags & 0x20)\n            skip_hdr_extension(&ctx->bc);\n        ret = ff_ivi_dec_huff_desc(&ctx->bc, ctx->frame_flags & 0x40,\n                                   IVI_MB_HUFF, &ctx->mb_vlc, avctx);\n        if (ret < 0)\n            return ret;\n        bitstream_skip(&ctx->bc, 3);\n    }\n    bitstream_align(&ctx->bc);\n    return 0;\n}', 'int ff_ivi_dec_huff_desc(BitstreamContext *bc, int desc_coded, int which_tab,\n                         IVIHuffTab *huff_tab, AVCodecContext *avctx)\n{\n    int i, result;\n    IVIHuffDesc new_huff;\n    if (!desc_coded) {\n        huff_tab->tab = (which_tab) ? &ivi_blk_vlc_tabs[7]\n                                    : &ivi_mb_vlc_tabs [7];\n        return 0;\n    }\n    huff_tab->tab_sel = bitstream_read(bc, 3);\n    if (huff_tab->tab_sel == 7) {\n        new_huff.num_rows = bitstream_read(bc, 4);\n        if (!new_huff.num_rows) {\n            av_log(avctx, AV_LOG_ERROR, "Empty custom Huffman table!\\n");\n            return AVERROR_INVALIDDATA;\n        }\n        for (i = 0; i < new_huff.num_rows; i++)\n            new_huff.xbits[i] = bitstream_read(bc, 4);\n        if (ivi_huff_desc_cmp(&new_huff, &huff_tab->cust_desc)) {\n            ivi_huff_desc_copy(&huff_tab->cust_desc, &new_huff);\n            if (huff_tab->cust_tab.table)\n                ff_free_vlc(&huff_tab->cust_tab);\n            result = ivi_create_huff_from_desc(&huff_tab->cust_desc,\n                    &huff_tab->cust_tab, 0);\n            if (result) {\n                huff_tab->cust_desc.num_rows = 0;\n                av_log(avctx, AV_LOG_ERROR,\n                       "Error while initializing custom vlc table!\\n");\n                return result;\n            }\n        }\n        huff_tab->tab = &huff_tab->cust_tab;\n    } else {\n        huff_tab->tab = (which_tab) ? &ivi_blk_vlc_tabs[huff_tab->tab_sel]\n            : &ivi_mb_vlc_tabs [huff_tab->tab_sel];\n    }\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}']