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

libavcodec/dirac.c:153:23: Call
151.     if (bitstream_read_bit(bc)) {
152.         dsh->width  = get_interleaved_ue_golomb(bc); /* [DIRAC_STD] FRAME_WIDTH  */
153.         dsh->height = get_interleaved_ue_golomb(bc); /* [DIRAC_STD] FRAME_HEIGHT */
                           ^
154.     }
155. 

libavcodec/golomb.h:112:9: Call
  110.     if (buf & 0xAA800000) {
  111.         buf >>= 32 - 8;
  112.         bitstream_skip(bc, ff_interleaved_golomb_vlc_len[buf]);
               ^
  113. 
  114.         return ff_interleaved_ue_golomb_vlc_code[buf];

libavcodec/bitstream.h:247:9: Assignment
    245.         n -= bc->bits_left;
    246.         bc->bits      = 0;
    247.         bc->bits_left = 0;
                 ^
    248. 
    249.         if (n >= 64) {

libavcodec/bitstream.h:255:9: Call
    253.             bc->ptr += skip;
    254.         }
    255.         refill_64(bc);
                 ^
    256.         if (n)
    257.             skip_remaining(bc, n);

libavcodec/bitstream.h:45:1: Parameter `bc->bits_left`
      43. } BitstreamContext;
      44. 
      45. static inline void refill_64(BitstreamContext *bc)
          ^
      46. {
      47.     if (bc->ptr >= bc->buffer_end)

libavcodec/dirac.c:159:9: Call
157.      *  chroma_sampling_format(video_params) */
158.     /* [DIRAC_STD] custom_chroma_format_flag */
159.     if (bitstream_read_bit(bc))
             ^
160.         /* [DIRAC_STD] CHROMA_FORMAT_INDEX */
161.         dsh->chroma_format = get_interleaved_ue_golomb(bc);

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: <LHS trace>
127. }
128. 
129. static inline uint64_t get_val(BitstreamContext *bc, unsigned n)
     ^
130. {
131. #ifdef BITSTREAM_READER_LE

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

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

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