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

libavcodec/dirac.c:179:33: Call
177.     /* [DIRAC_STD] 10.3.5 Frame Rate. frame_rate(video_params) */
178.     if (bitstream_read_bit(bc)) { /* [DIRAC_STD] custom_frame_rate_flag */
179.         dsh->frame_rate_index = get_interleaved_ue_golomb(bc);
                                     ^
180. 
181.         if (dsh->frame_rate_index > 10)

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:203:9: Call
201.     /* [DIRAC_STD] 10.3.6 Pixel Aspect Ratio.
202.      * pixel_aspect_ratio(video_params) */
203.     if (bitstream_read_bit(bc)) { /* [DIRAC_STD] custom_pixel_aspect_ratio_flag */
             ^
204.         /* [DIRAC_STD] index */
205.         dsh->aspect_ratio_index = 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;
