libavcodec/cavsdec.c:1165: error: Integer Overflow L2
  (16 - [0, 64]):unsigned32 by call to `decode_pic`.

libavcodec/cavsdec.c:1163:13: Call
1161.             if (!h->got_keyframe)
1162.                 break;
1163.             bitstream_init(&h->bc, buf_ptr, input_size);
                  ^
1164.             h->stc = stc;
1165.             if (decode_pic(h))

libavcodec/bitstream.h:84:9: Assignment
  82.         bc->buffer    =
  83.         bc->ptr       = NULL;
  84.         bc->bits_left = 0;
              ^
  85.         return AVERROR_INVALIDDATA;
  86.     }

libavcodec/cavsdec.c:1165:17: Call
1163.             bitstream_init(&h->bc, buf_ptr, input_size);
1164.             h->stc = stc;
1165.             if (decode_pic(h))
                      ^
1166.                 break;
1167.             *got_frame = 1;

libavcodec/cavsdec.c:928:1: Parameter `h->bc.bits_left`
  926.  ****************************************************************************/
  927. 
  928. static int decode_pic(AVSContext *h)
       ^
  929. {
  930.     int ret;

libavcodec/cavsdec.c:941:5: Call
  939.     av_frame_unref(h->cur.f);
  940. 
  941.     bitstream_skip(&h->bc, 16); // bbv_dwlay
           ^
  942.     if (h->stc == PIC_PB_START_CODE) {
  943.         h->cur.f->pict_type = bitstream_read(&h->bc, 2) + AV_PICTURE_TYPE_I;

libavcodec/bitstream.h:240:1: <LHS trace>
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: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:240:1: <RHS trace>
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: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:245:9: Binary operation: (16 - [0, 64]):unsigned32 by call to `decode_pic` 
    243.         skip_remaining(bc, n);
    244.     else {
    245.         n -= bc->bits_left;
                 ^
    246.         bc->bits      = 0;
    247.         bc->bits_left = 0;
