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

libavcodec/alsdec.c:1199:41: Call
1197.                 current->weighting[3] = als_weighting(bc, 1, 16);
1198.                 current->weighting[4] = als_weighting(bc, 1, 16);
1199.                 current->weighting[5] = als_weighting(bc, 1, 16);
                                              ^
1200. 
1201.                 current->time_diff_sign  = bitstream_read_bit(bc);

libavcodec/alsdec.c:1166:1: Parameter `k`
  1164. }
  1165. 
  1166. static inline int als_weighting(BitstreamContext *bc, int k, int off)
        ^
  1167. {
  1168.     int idx = av_clip(decode_rice(bc, k) + off,

libavcodec/alsdec.c:1168:23: Call
  1166. static inline int als_weighting(BitstreamContext *bc, int k, int off)
  1167. {
  1168.     int idx = av_clip(decode_rice(bc, k) + off,
                              ^
  1169.                       0, FF_ARRAY_ELEMS(mcc_weightings) - 1);
  1170.     return mcc_weightings[idx];

libavcodec/alsdec.c:466:1: Parameter `bc->bits_left`
    464. /** Read and decode a Rice codeword.
    465.  */
    466. static int32_t decode_rice(BitstreamContext *bc, unsigned int k)
         ^
    467. {
    468.     int max = bitstream_bits_left(bc) - k;

libavcodec/alsdec.c:469:15: Call
    467. {
    468.     int max = bitstream_bits_left(bc) - k;
    469.     int q   = get_unary(bc, 0, max);
                       ^
    470.     int r   = k ? bitstream_read_bit(bc) : !(q & 1);
    471. 

libavcodec/unary.h:33:1: Parameter `bc->bits_left`
      31.  * @return Unary length/index
      32.  */
      33. static inline int get_unary(BitstreamContext *bc, int stop, int len)
          ^
      34. {
      35.     int i;

libavcodec/alsdec.c:1201:44: Call
1199.                 current->weighting[5] = als_weighting(bc, 1, 16);
1200. 
1201.                 current->time_diff_sign  = bitstream_read_bit(bc);
                                                 ^
1202.                 current->time_diff_index = bitstream_read(bc, ctx->ltp_lag_length - 3) + 3;
1203.             }

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

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

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: ([0, +oo] - 1):unsigned32 by call to `bitstream_read_bit` 
    137.     bc->bits <<= n;
    138. #endif
    139.     bc->bits_left -= n;
             ^
    140. 
    141.     return ret;
