libavcodec/bitstream.h:326: error: Integer Overflow L2
  (32 - [0, `bc->bits_left` + 63]):unsigned32 by call to `set_idx`.

libavcodec/bitstream.h:313:1: Parameter `(*table)[*]`
311.  * If the VLC code is invalid and max_depth > 1, then the number of bits removed
312.  * is undefined. */
313. static inline int bitstream_read_vlc(BitstreamContext *bc, VLC_TYPE (*table)[2],
     ^
314.                                      int bits, int max_depth)
315. {

libavcodec/bitstream.h:319:5: Assignment
317.     unsigned idx = bitstream_peek(bc, bits);
318.     int code = table[idx][0];
319.     int n    = table[idx][1];
         ^
320. 
321.     if (max_depth > 1 && n < 0) {

libavcodec/bitstream.h:323:16: Call
321.     if (max_depth > 1 && n < 0) {
322.         skip_remaining(bc, bits);
323.         code = set_idx(bc, code, &n, &nb_bits, table);
                    ^
324.         if (max_depth > 2 && n < 0) {
325.             skip_remaining(bc, nb_bits);

libavcodec/bitstream.h:291:1: Parameter `*n`
  289. 
  290. /* Return the LUT element for the given bitstream configuration. */
  291. static inline int set_idx(BitstreamContext *bc, int code, int *n, int *nb_bits,
       ^
  292.                           VLC_TYPE (*table)[2])
  293. {

libavcodec/bitstream.h:296:5: Assignment
  294.     unsigned idx;
  295. 
  296.     *nb_bits = -*n;
           ^
  297.     idx = bitstream_peek(bc, *nb_bits) + code;
  298.     *n = table[idx][1];

libavcodec/bitstream.h:325:13: Call
323.         code = set_idx(bc, code, &n, &nb_bits, table);
324.         if (max_depth > 2 && n < 0) {
325.             skip_remaining(bc, nb_bits);
                 ^
326.             code = set_idx(bc, code, &n, &nb_bits, table);
327.         }

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: Assignment
  235.     bc->bits <<= n;
  236. #endif
  237.     bc->bits_left -= n;
           ^
  238. }
  239. 

libavcodec/bitstream.h:326:20: Call
324.         if (max_depth > 2 && n < 0) {
325.             skip_remaining(bc, nb_bits);
326.             code = set_idx(bc, code, &n, &nb_bits, table);
                        ^
327.         }
328.     }

libavcodec/bitstream.h:291:1: Parameter `bc->bits_left`
  289. 
  290. /* Return the LUT element for the given bitstream configuration. */
  291. static inline int set_idx(BitstreamContext *bc, int code, int *n, int *nb_bits,
       ^
  292.                           VLC_TYPE (*table)[2])
  293. {

libavcodec/bitstream.h:297:11: Call
  295. 
  296.     *nb_bits = -*n;
  297.     idx = bitstream_peek(bc, *nb_bits) + code;
                 ^
  298.     *n = table[idx][1];
  299. 

libavcodec/bitstream.h:215:1: Parameter `n`
    213. /* Return n bits from the buffer, but do not change the buffer state.
    214.  * n has to be in the 0-32 range. */
    215. static inline unsigned bitstream_peek(BitstreamContext *bc, unsigned n)
         ^
    216. {
    217.     if (n > bc->bits_left)

libavcodec/bitstream.h:218:9: Call
    216. {
    217.     if (n > bc->bits_left)
    218.         refill_32(bc);
                 ^
    219. 
    220.     return show_val(bc, n);

libavcodec/bitstream.h:60:1: <RHS trace>
58. }
59. 
60. static inline void refill_32(BitstreamContext *bc)
    ^
61. {
62.     if (bc->ptr >= bc->buffer_end)

libavcodec/bitstream.h:60:1: Parameter `bc->bits_left`
      58. }
      59. 
      60. static inline void refill_32(BitstreamContext *bc)
          ^
      61. {
      62.     if (bc->ptr >= bc->buffer_end)

libavcodec/bitstream.h:68:5: Binary operation: (32 - [0, bc->bits_left + 63]):unsigned32 by call to `set_idx` 
      66.     bc->bits       = (uint64_t)AV_RL32(bc->ptr) << bc->bits_left | bc->bits;
      67. #else
      68.     bc->bits       = bc->bits | (uint64_t)AV_RB32(bc->ptr) << (32 - bc->bits_left);
              ^
      69. #endif
      70.     bc->ptr       += 4;
