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

libavcodec/wmavoice.c:1680:10: Call
1678.     if (bitstream_bits_left(bc) < 14)
1679.         return 1;
1680.     if (!bitstream_read_bit(bc))
               ^
1681.         return AVERROR(ENOSYS);           // WMAPro-in-WMAVoice superframe
1682.     if (bitstream_read_bit(bc)) bitstream_skip(bc, 12); // number of  samples in superframe

libavcodec/bitstream.h:144:1: Parameter `bc->bits_left`
  142. 
  143. /* Return one bit from the buffer. */
  144. static inline unsigned bitstream_read_bit(BitstreamContext *bc)
       ^
  145. {
  146.     if (!bc->bits_left)

libavcodec/bitstream.h:149:12: Call
  147.         refill_64(bc);
  148. 
  149.     return get_val(bc, 1);
                  ^
  150. }
  151. 

libavcodec/bitstream.h:129:1: Parameter `n`
    127. }
    128. 
    129. static inline uint64_t get_val(BitstreamContext *bc, unsigned n)
         ^
    130. {
    131. #ifdef BITSTREAM_READER_LE

libavcodec/bitstream.h:138:5: Assignment
    136.     bc->bits <<= n;
    137. #endif
    138.     bc->bits_left -= n;
             ^
    139. 
    140.     return ret;

libavcodec/wmavoice.c:1682:9: Call
1680.     if (!bitstream_read_bit(bc))
1681.         return AVERROR(ENOSYS);           // WMAPro-in-WMAVoice superframe
1682.     if (bitstream_read_bit(bc)) bitstream_skip(bc, 12); // number of  samples in superframe
              ^
1683.     if (s->has_residual_lsps) {           // residual LSPs (for all frames)
1684.         if (bitstream_bits_left(bc) < s->sframe_lsp_bitsize)

libavcodec/bitstream.h:144:1: Parameter `bc->bits_left`
  142. 
  143. /* Return one bit from the buffer. */
  144. static inline unsigned bitstream_read_bit(BitstreamContext *bc)
       ^
  145. {
  146.     if (!bc->bits_left)

libavcodec/bitstream.h:149:12: Call
  147.         refill_64(bc);
  148. 
  149.     return get_val(bc, 1);
                  ^
  150. }
  151. 

libavcodec/bitstream.h:129:1: Parameter `n`
    127. }
    128. 
    129. static inline uint64_t get_val(BitstreamContext *bc, unsigned n)
         ^
    130. {
    131. #ifdef BITSTREAM_READER_LE

libavcodec/bitstream.h:138:5: Assignment
    136.     bc->bits <<= n;
    137. #endif
    138.     bc->bits_left -= n;
             ^
    139. 
    140.     return ret;

libavcodec/wmavoice.c:1682:33: Call
1680.     if (!bitstream_read_bit(bc))
1681.         return AVERROR(ENOSYS);           // WMAPro-in-WMAVoice superframe
1682.     if (bitstream_read_bit(bc)) bitstream_skip(bc, 12); // number of  samples in superframe
                                      ^
1683.     if (s->has_residual_lsps) {           // residual LSPs (for all frames)
1684.         if (bitstream_bits_left(bc) < s->sframe_lsp_bitsize)

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:243:9: Call
  241. {
  242.     if (n < bc->bits_left)
  243.         skip_remaining(bc, n);
               ^
  244.     else {
  245.         n -= bc->bits_left;

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, +oo] - 12):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 check_bits_for_superframe(BitstreamContext *orig_bc,\n                                     WMAVoiceContext *s)\n{\n    BitstreamContext s_bc, *bc = &s_bc;\n    int n, need_bits, bd_idx;\n    const struct frame_type_desc *frame_desc;\n    *bc = *orig_bc;\n    if (bitstream_bits_left(bc) < 14)\n        return 1;\n    if (!bitstream_read_bit(bc))\n        return AVERROR(ENOSYS);\n    if (bitstream_read_bit(bc)) bitstream_skip(bc, 12);\n    if (s->has_residual_lsps) {\n        if (bitstream_bits_left(bc) < s->sframe_lsp_bitsize)\n            return 1;\n        bitstream_skip(bc, s->sframe_lsp_bitsize);\n    }\n    for (n = 0; n < MAX_FRAMES; n++) {\n        int aw_idx_is_ext = 0;\n        if (!s->has_residual_lsps) {\n           if (bitstream_bits_left(bc) < s->frame_lsp_bitsize)\n               return 1;\n           bitstream_skip(bc, s->frame_lsp_bitsize);\n        }\n        bd_idx = s->vbm_tree[bitstream_read_vlc(bc, frame_type_vlc.table, 6, 3)];\n        if (bd_idx < 0)\n            return AVERROR_INVALIDDATA;\n        frame_desc = &frame_descs[bd_idx];\n        if (frame_desc->acb_type == ACB_TYPE_ASYMMETRIC) {\n            if (bitstream_bits_left(bc) < s->pitch_nbits)\n                return 1;\n            bitstream_skip(bc, s->pitch_nbits);\n        }\n        if (frame_desc->fcb_type == FCB_TYPE_SILENCE) {\n            bitstream_skip(bc, 8);\n        } else if (frame_desc->fcb_type == FCB_TYPE_AW_PULSES) {\n            int tmp = bitstream_read(bc, 6);\n            if (tmp >= 0x36) {\n                bitstream_skip(bc, 2);\n                aw_idx_is_ext = 1;\n            }\n        }\n        if (frame_desc->acb_type == ACB_TYPE_HAMMING) {\n            need_bits = s->block_pitch_nbits +\n                (frame_desc->n_blocks - 1) * s->block_delta_pitch_nbits;\n        } else if (frame_desc->fcb_type == FCB_TYPE_AW_PULSES) {\n            need_bits = 2 * !aw_idx_is_ext;\n        } else\n            need_bits = 0;\n        need_bits += frame_desc->frame_size;\n        if (bitstream_bits_left(bc) < need_bits)\n            return 1;\n        bitstream_skip(bc, need_bits);\n    }\n    return 0;\n}', 'static inline unsigned bitstream_read_bit(BitstreamContext *bc)\n{\n    if (!bc->bits_left)\n        refill_64(bc);\n    return get_val(bc, 1);\n}', 'static inline uint64_t get_val(BitstreamContext *bc, unsigned n)\n{\n#ifdef BITSTREAM_READER_LE\n    uint64_t ret = bc->bits & ((UINT64_C(1) << n) - 1);\n    bc->bits >>= n;\n#else\n    uint64_t ret = bc->bits >> (64 - n);\n    bc->bits <<= n;\n#endif\n    bc->bits_left -= n;\n    return ret;\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        bc->bits      = 0;\n        bc->bits_left = 0;\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}']