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

libavcodec/binkaudio.c:311:15: Call
309.         }
310. 
311.         ret = bitstream_init8(bc, s->pkt->data, s->pkt->size);
                   ^
312.         if (ret < 0)
313.             goto fail;

libavcodec/bitstream.h:103:1: Parameter `bc->bits_left`
  101. 
  102. /* Initialize BitstreamContext with buffer size in bytes instead of bits. */
  103. static inline int bitstream_init8(BitstreamContext *bc, const uint8_t *buffer,
       ^
  104.                                   unsigned byte_size)
  105. {

libavcodec/binkaudio.c:316:9: Call
314. 
315.         /* skip reported size */
316.         bitstream_skip(bc, 32);
             ^
317.     }
318. 

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

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

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

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

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

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

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

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;
}
['static int binkaudio_receive_frame(AVCodecContext *avctx, AVFrame *frame)\n{\n    BinkAudioContext *s = avctx->priv_data;\n    BitstreamContext *bc = &s->bc;\n    int ret;\n    if (!s->pkt->data) {\n        ret = ff_decode_get_packet(avctx, s->pkt);\n        if (ret < 0)\n            return ret;\n        if (s->pkt->size < 4) {\n            av_log(avctx, AV_LOG_ERROR, "Packet is too small\\n");\n            ret = AVERROR_INVALIDDATA;\n            goto fail;\n        }\n        ret = bitstream_init8(bc, s->pkt->data, s->pkt->size);\n        if (ret < 0)\n            goto fail;\n        bitstream_skip(bc, 32);\n    }\n    frame->nb_samples = s->frame_len;\n    if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) {\n        av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\\n");\n        return ret;\n    }\n    if (decode_block(s, (float **)frame->extended_data,\n                     avctx->codec->id == AV_CODEC_ID_BINKAUDIO_DCT)) {\n        av_log(avctx, AV_LOG_ERROR, "Incomplete packet\\n");\n        return AVERROR_INVALIDDATA;\n    }\n    get_bits_align32(bc);\n    if (!bitstream_bits_left(bc)) {\n        memset(bc, 0, sizeof(*bc));\n        av_packet_unref(s->pkt);\n    }\n    frame->nb_samples = s->block_size / avctx->channels;\n    return 0;\nfail:\n    av_packet_unref(s->pkt);\n    return ret;\n}', 'static inline int bitstream_init8(BitstreamContext *bc, const uint8_t *buffer,\n                                  unsigned byte_size)\n{\n    if (byte_size > INT_MAX / 8)\n        return AVERROR_INVALIDDATA;\n    return bitstream_init(bc, buffer, byte_size * 8);\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        bc->bits      = 0;\n        bc->bits_left = 0;\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}']