libavcodec/mlp_parser.c:179: error: Integer Overflow L2
  ([0, +oo] - 11):unsigned32 by call to `bitstream_skip`.

libavcodec/mlp_parser.c:177:48: Call
175.         ratebits = bitstream_read(bc, 4);
176.         mh->group1_samplerate = mlp_samplerate(ratebits);
177.         mh->group2_samplerate = mlp_samplerate(bitstream_read(bc, 4));
                                                    ^
178. 
179.         bitstream_skip(bc, 11);

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/mlp_parser.c:179:9: Call
177.         mh->group2_samplerate = mlp_samplerate(bitstream_read(bc, 4));
178. 
179.         bitstream_skip(bc, 11);
             ^
180. 
181.         channel_arrangement    = bitstream_read(bc, 5);

libavcodec/bitstream.h:241:1: Parameter `n`
  239. 
  240. /* Skip n bits in the buffer. */
  241. static inline void bitstream_skip(BitstreamContext *bc, unsigned n)
       ^
  242. {
  243.     if (n <= bc->bits_left)

libavcodec/bitstream.h:244:9: Call
  242. {
  243.     if (n <= bc->bits_left)
  244.         skip_remaining(bc, n);
               ^
  245.     else {
  246.         n -= bc->bits_left;

libavcodec/bitstream.h:230:1: <LHS trace>
228. }
229. 
230. static inline void skip_remaining(BitstreamContext *bc, unsigned n)
     ^
231. {
232. #ifdef BITSTREAM_READER_LE

libavcodec/bitstream.h:230:1: Parameter `bc->bits_left`
    228. }
    229. 
    230. static inline void skip_remaining(BitstreamContext *bc, unsigned n)
         ^
    231. {
    232. #ifdef BITSTREAM_READER_LE

libavcodec/bitstream.h:230:1: <RHS trace>
228. }
229. 
230. static inline void skip_remaining(BitstreamContext *bc, unsigned n)
     ^
231. {
232. #ifdef BITSTREAM_READER_LE

libavcodec/bitstream.h:230:1: Parameter `n`
    228. }
    229. 
    230. static inline void skip_remaining(BitstreamContext *bc, unsigned n)
         ^
    231. {
    232. #ifdef BITSTREAM_READER_LE

libavcodec/bitstream.h:237:5: Binary operation: ([0, +oo] - 11):unsigned32 by call to `bitstream_skip` 
    235.     bc->bits <<= n;
    236. #endif
    237.     bc->bits_left -= n;
             ^
    238. }
    239. 

static inline void skip_remaining(BitstreamContext *bc, unsigned n)
{
#ifdef BITSTREAM_READER_LE
    bc->bits >>= n;
#else
    bc->bits <<= n;
#endif
    bc->bits_left -= n;
}
['int ff_mlp_read_major_sync(void *log, MLPHeaderInfo *mh, BitstreamContext *bc)\n{\n    int ratebits, channel_arrangement, header_size;\n    uint16_t checksum;\n    assert(bitstream_tell(bc) == 0);\n    header_size = ff_mlp_get_major_sync_size(bc->buffer, bc->size_in_bits >> 3);\n    if (header_size < 0 || bc->size_in_bits < header_size << 3) {\n        av_log(log, AV_LOG_ERROR, "packet too short, unable to read major sync\\n");\n        return -1;\n    }\n    checksum = ff_mlp_checksum16(bc->buffer, header_size - 2);\n    if (checksum != AV_RL16(bc->buffer + header_size - 2)) {\n        av_log(log, AV_LOG_ERROR, "major sync info header checksum error\\n");\n        return AVERROR_INVALIDDATA;\n    }\n    if (bitstream_read(bc, 24) != 0xf8726f)\n        return AVERROR_INVALIDDATA;\n    mh->stream_type = bitstream_read(bc, 8);\n    mh->header_size = header_size;\n    if (mh->stream_type == 0xbb) {\n        mh->group1_bits = mlp_quants[bitstream_read(bc, 4)];\n        mh->group2_bits = mlp_quants[bitstream_read(bc, 4)];\n        ratebits = bitstream_read(bc, 4);\n        mh->group1_samplerate = mlp_samplerate(ratebits);\n        mh->group2_samplerate = mlp_samplerate(bitstream_read(bc, 4));\n        bitstream_skip(bc, 11);\n        channel_arrangement    = bitstream_read(bc, 5);\n        mh->channels_mlp       = mlp_channels[channel_arrangement];\n        mh->channel_layout_mlp = mlp_layout[channel_arrangement];\n    } else if (mh->stream_type == 0xba) {\n        mh->group1_bits = 24;\n        mh->group2_bits = 0;\n        ratebits = bitstream_read(bc, 4);\n        mh->group1_samplerate = mlp_samplerate(ratebits);\n        mh->group2_samplerate = 0;\n        bitstream_skip(bc, 4);\n        mh->channel_modifier_thd_stream0 = bitstream_read(bc, 2);\n        mh->channel_modifier_thd_stream1 = bitstream_read(bc, 2);\n        channel_arrangement            = bitstream_read(bc, 5);\n        mh->channels_thd_stream1       = truehd_channels(channel_arrangement);\n        mh->channel_layout_thd_stream1 = truehd_layout(channel_arrangement);\n        mh->channel_modifier_thd_stream2 = bitstream_read(bc, 2);\n        channel_arrangement            = bitstream_read(bc, 13);\n        mh->channels_thd_stream2       = truehd_channels(channel_arrangement);\n        mh->channel_layout_thd_stream2 = truehd_layout(channel_arrangement);\n    } else\n        return AVERROR_INVALIDDATA;\n    mh->access_unit_size = 40 << (ratebits & 7);\n    mh->access_unit_size_pow2 = 64 << (ratebits & 7);\n    bitstream_skip(bc, 48);\n    mh->is_vbr = bitstream_read_bit(bc);\n    mh->peak_bitrate = (bitstream_read(bc, 15) * mh->group1_samplerate + 8) >> 4;\n    mh->num_substreams = bitstream_read(bc, 4);\n    bitstream_skip(bc, 4 + (header_size - 17) * 8);\n    return 0;\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 void bitstream_skip(BitstreamContext *bc, unsigned n)\n{\n    if (n <= bc->bits_left)\n        skip_remaining(bc, n);\n    else {\n        n -= bc->bits_left;\n        skip_remaining(bc, bc->bits_left);\n        if (n >= 64) {\n            unsigned skip = n / 8;\n            n -= skip * 8;\n            bc->ptr += skip;\n        }\n        refill_64(bc);\n        if (n)\n            skip_remaining(bc, n);\n    }\n}', 'static inline void skip_remaining(BitstreamContext *bc, unsigned n)\n{\n#ifdef BITSTREAM_READER_LE\n    bc->bits >>= n;\n#else\n    bc->bits <<= n;\n#endif\n    bc->bits_left -= n;\n}']