libavcodec/tak.c:98: error: Integer Overflow L2
  ([0, +oo] - [0, 35]):unsigned32 by call to `bitstream_read_63`.

libavcodec/tak.c:97:18: Call
95.     bitstream_skip(bc, TAK_ENCODER_PROFILE_BITS);
96. 
97.     frame_type = bitstream_read(bc, TAK_SIZE_FRAME_DURATION_BITS);
                     ^
98.     s->samples = bitstream_read_63(bc, TAK_SIZE_SAMPLES_NUM_BITS);
99. 

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/tak.c:98:18: Call
 96. 
 97.     frame_type = bitstream_read(bc, TAK_SIZE_FRAME_DURATION_BITS);
 98.     s->samples = bitstream_read_63(bc, TAK_SIZE_SAMPLES_NUM_BITS);
                      ^
 99. 
100.     s->data_type   = bitstream_read(bc, TAK_FORMAT_DATA_TYPE_BITS);

libavcodec/bitstream.h:154:1: Parameter `n`
  152. 
  153. /* Return n bits from the buffer. n has to be in the 0-63 range. */
  154. static inline uint64_t bitstream_read_63(BitstreamContext *bc, unsigned n)
       ^
  155. {
  156.     uint64_t ret = 0;

libavcodec/bitstream.h:174:11: Call
  172. 
  173. #ifdef BITSTREAM_READER_LE
  174.     ret = get_val(bc, n) << left | ret;
                 ^
  175. #else
  176.     ret = get_val(bc, n) | ret << n;

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