libavcodec/wmavoice.c:1023: error: Integer Overflow L2
  ([1, +oo] - 2):unsigned32 by call to `bitstream_read`.

libavcodec/wmavoice.c:1023:35: Call
1021.     if ((bits = bitstream_read(bc, 6)) >= 54) {
1022.         s->aw_idx_is_ext = 1;
1023.         bits += (bits - 54) * 3 + bitstream_read(bc, 2);
                                        ^
1024.     }
1025. 

libavcodec/bitstream.h:183:1: Parameter `n`
  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/bitstream.h:194:12: Call
  192.     }
  193. 
  194.     return get_val(bc, n);
                  ^
  195. }
  196. 

libavcodec/bitstream.h:130:1: <LHS trace>
128. }
129. 
130. static inline uint64_t get_val(BitstreamContext *bc, unsigned n)
     ^
131. {
132. #ifdef BITSTREAM_READER_LE

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

libavcodec/bitstream.h:130:1: <RHS trace>
128. }
129. 
130. static inline uint64_t get_val(BitstreamContext *bc, unsigned n)
     ^
131. {
132. #ifdef BITSTREAM_READER_LE

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

libavcodec/bitstream.h:139:5: Binary operation: ([1, +oo] - 2):unsigned32 by call to `bitstream_read` 
    137.     bc->bits <<= n;
    138. #endif
    139.     bc->bits_left -= n;
             ^
    140. 
    141.     return ret;

static inline uint64_t get_val(BitstreamContext *bc, unsigned n)
{
#ifdef BITSTREAM_READER_LE
    uint64_t ret = bc->bits & ((UINT64_C(1) << n) - 1);
    bc->bits >>= n;
#else
    uint64_t ret = bc->bits >> (64 - n);
    bc->bits <<= n;
#endif
    bc->bits_left -= n;
    return ret;
}
['static void aw_parse_coords(WMAVoiceContext *s, BitstreamContext *bc,\n                            const int *pitch)\n{\n    static const int16_t start_offset[94] = {\n        -11,  -9,  -7,  -5,  -3,  -1,   1,   3,   5,   7,   9,  11,\n         13,  15,  18,  17,  19,  20,  21,  22,  23,  24,  25,  26,\n         27,  28,  29,  30,  31,  32,  33,  35,  37,  39,  41,  43,\n         45,  47,  49,  51,  53,  55,  57,  59,  61,  63,  65,  67,\n         69,  71,  73,  75,  77,  79,  81,  83,  85,  87,  89,  91,\n         93,  95,  97,  99, 101, 103, 105, 107, 109, 111, 113, 115,\n        117, 119, 121, 123, 125, 127, 129, 131, 133, 135, 137, 139,\n        141, 143, 145, 147, 149, 151, 153, 155, 157, 159\n    };\n    int bits, offset;\n    s->aw_idx_is_ext = 0;\n    if ((bits = bitstream_read(bc, 6)) >= 54) {\n        s->aw_idx_is_ext = 1;\n        bits += (bits - 54) * 3 + bitstream_read(bc, 2);\n    }\n    s->aw_pulse_range        = FFMIN(pitch[0], pitch[1]) > 32 ? 24 : 16;\n    for (offset = start_offset[bits]; offset < 0; offset += pitch[0]) ;\n    s->aw_n_pulses[0]        = (pitch[0] - 1 + MAX_FRAMESIZE / 2 - offset) / pitch[0];\n    s->aw_first_pulse_off[0] = offset - s->aw_pulse_range / 2;\n    offset                  += s->aw_n_pulses[0] * pitch[0];\n    s->aw_n_pulses[1]        = (pitch[1] - 1 + MAX_FRAMESIZE - offset) / pitch[1];\n    s->aw_first_pulse_off[1] = offset - (MAX_FRAMESIZE + s->aw_pulse_range) / 2;\n    if (start_offset[bits] < MAX_FRAMESIZE / 2) {\n        while (s->aw_first_pulse_off[1] - pitch[1] + s->aw_pulse_range > 0)\n            s->aw_first_pulse_off[1] -= pitch[1];\n        if (start_offset[bits] < 0)\n            while (s->aw_first_pulse_off[0] - pitch[0] + s->aw_pulse_range > 0)\n                s->aw_first_pulse_off[0] -= pitch[0];\n    }\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 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}']