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

libavcodec/cavsdec.c:1085:18: Call
1083. 
1084.     h->profile = bitstream_read(&h->bc, 8);
1085.     h->level   = bitstream_read(&h->bc, 8);
                       ^
1086.     bitstream_skip(&h->bc, 1); // progressive sequence
1087. 

libavcodec/bitstream.h:183:1: Parameter `bc->bits_left`
  181. 
  182. /* Return n bits from the buffer. n has to be in the 0-32 range. */
  183. static inline uint32_t bitstream_read(BitstreamContext *bc, unsigned n)
       ^
  184. {
  185.     if (!n)

libavcodec/cavsdec.c:1086:5: Call
1084.     h->profile = bitstream_read(&h->bc, 8);
1085.     h->level   = bitstream_read(&h->bc, 8);
1086.     bitstream_skip(&h->bc, 1); // progressive sequence
          ^
1087. 
1088.     width  = bitstream_read(&h->bc, 14);

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] - 1):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_seq_header(AVSContext *h)\n{\n    int frame_rate_code;\n    int width, height;\n    h->profile = bitstream_read(&h->bc, 8);\n    h->level   = bitstream_read(&h->bc, 8);\n    bitstream_skip(&h->bc, 1);\n    width  = bitstream_read(&h->bc, 14);\n    height = bitstream_read(&h->bc, 14);\n    if ((h->width || h->height) && (h->width != width || h->height != height)) {\n        avpriv_report_missing_feature(h->avctx,\n                                      "Width/height changing in CAVS");\n        return AVERROR_PATCHWELCOME;\n    }\n    h->width  = width;\n    h->height = height;\n    bitstream_skip(&h->bc, 2);\n    bitstream_skip(&h->bc, 3);\n    h->aspect_ratio = bitstream_read(&h->bc, 4);\n    frame_rate_code = bitstream_read(&h->bc, 4);\n    bitstream_skip(&h->bc, 18);\n    bitstream_skip(&h->bc, 1);\n    bitstream_skip(&h->bc, 12);\n    h->low_delay =  bitstream_read_bit(&h->bc);\n    h->mb_width  = (h->width  + 15) >> 4;\n    h->mb_height = (h->height + 15) >> 4;\n    h->avctx->framerate = ff_mpeg12_frame_rate_tab[frame_rate_code];\n    h->avctx->width  = h->width;\n    h->avctx->height = h->height;\n    if (!h->top_qp)\n        ff_cavs_init_top_lines(h);\n    return 0;\n}', 'static inline uint32_t bitstream_read(BitstreamContext *bc, unsigned n)\n{\n    if (!n)\n        return 0;\n    if (n > bc->bits_left) {\n        refill_32(bc);\n        if (bc->bits_left < 32)\n            bc->bits_left = n;\n    }\n    return get_val(bc, n);\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}']