libavcodec/kgv1dec.c:156: error: Integer Overflow L2
  ([0, 9223372036854775807] + 1):signed32 by call to `av_frame_ref`.

libavcodec/kgv1dec.c:72:16: Call
70.     maxcnt = w * h;
71. 
72.     if ((res = ff_get_buffer(avctx, frame, AV_GET_BUFFER_FLAG_REF)) < 0)
                   ^
73.         return res;
74.     out  = (uint16_t *) frame->data[0];

libavcodec/utils.c:569:1: Parameter `*frame->buf[*]`
  567. #endif
  568. 
  569. int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags)
       ^
  570. {
  571.     int ret;

libavcodec/kgv1dec.c:156:16: Call
154. 
155.     av_frame_unref(c->prev);
156.     if ((res = av_frame_ref(c->prev, frame)) < 0)
                    ^
157.         return res;
158. 

libavutil/frame.c:174:1: Parameter `dst->nb_side_data`
  172. }
  173. 
  174. int av_frame_ref(AVFrame *dst, const AVFrame *src)
       ^
  175. {
  176.     int i, ret = 0;

libavutil/frame.c:184:11: Call
  182.     dst->nb_samples     = src->nb_samples;
  183. 
  184.     ret = av_frame_copy_props(dst, src);
                 ^
  185.     if (ret < 0)
  186.         return ret;

libavutil/frame.c:362:1: Parameter `dst->nb_side_data`
    360. }
    361. 
    362. int av_frame_copy_props(AVFrame *dst, const AVFrame *src)
         ^
    363. {
    364.     int i;

libavutil/frame.c:256:5: Call
  254. 
  255. fail:
  256.     av_frame_unref(dst);
           ^
  257.     return ret;
  258. }

libavutil/frame.c:273:1: <LHS trace>
271. }
272. 
273. void av_frame_unref(AVFrame *frame)
     ^
274. {
275.     int i;

libavutil/frame.c:273:1: Parameter `frame->nb_side_data`
    271. }
    272. 
    273. void av_frame_unref(AVFrame *frame)
         ^
    274. {
    275.     int i;

libavutil/frame.c:277:42: Binary operation: ([0, 9223372036854775807] + 1):signed32 by call to `av_frame_ref` 
    275.     int i;
    276. 
    277.     for (i = 0; i < frame->nb_side_data; i++) {
                                                  ^
    278.         av_freep(&frame->side_data[i]->data);
    279.         av_dict_free(&frame->side_data[i]->metadata);
