libavcodec/motionpixels.c:319: error: Integer Overflow L2
  ([1, 2147483616] + 32):signed32 by call to `av_frame_ref`.

libavcodec/motionpixels.c:280:5: Unknown value from: non-const function
278.     if (!mp->bswapbuf)
279.         return AVERROR(ENOMEM);
280.     mp->bdsp.bswap_buf((uint32_t *) mp->bswapbuf, (const uint32_t *) buf,
         ^
281.                        buf_size / 4);
282.     if (buf_size & 3)

libavcodec/motionpixels.c:319:16: Call
317. 
318. end:
319.     if ((ret = av_frame_ref(data, mp->frame)) < 0)
                    ^
320.         return ret;
321.     *got_frame       = 1;

libavutil/frame.c:190:1: Parameter `src->nb_samples`
  188. }
  189. 
  190. int av_frame_ref(AVFrame *dst, const AVFrame *src)
       ^
  191. {
  192.     int i, ret = 0;

libavutil/frame.c:198:5: Assignment
  196.     dst->height         = src->height;
  197.     dst->channel_layout = src->channel_layout;
  198.     dst->nb_samples     = src->nb_samples;
           ^
  199. 
  200.     ret = av_frame_copy_props(dst, src);

libavutil/frame.c:206:15: Call
  204.     /* duplicate the frame data if it's not refcounted */
  205.     if (!src->buf[0]) {
  206.         ret = av_frame_get_buffer(dst, 32);
                     ^
  207.         if (ret < 0)
  208.             return ret;

libavutil/frame.c:177:1: Parameter `frame->nb_samples`
    175. }
    176. 
    177. int av_frame_get_buffer(AVFrame *frame, int align)
         ^
    178. {
    179.     if (frame->format < 0)

libavutil/frame.c:185:16: Call
    183.         return get_video_buffer(frame, align);
    184.     else if (frame->nb_samples > 0 && frame->channel_layout)
    185.         return get_audio_buffer(frame, align);
                        ^
    186. 
    187.     return AVERROR(EINVAL);

libavutil/frame.c:128:1: Parameter `frame->nb_samples`
      126. }
      127. 
      128. static int get_audio_buffer(AVFrame *frame, int align)
           ^
      129. {
      130.     int channels = av_get_channel_layout_nb_channels(frame->channel_layout);

libavutil/frame.c:136:15: Call
      134. 
      135.     if (!frame->linesize[0]) {
      136.         ret = av_samples_get_buffer_size(&frame->linesize[0], channels,
                         ^
      137.                                          frame->nb_samples, frame->format,
      138.                                          align);

libavutil/samplefmt.c:108:1: <LHS trace>
106. }
107. 
108. int av_samples_get_buffer_size(int *linesize, int nb_channels, int nb_samples,
     ^
109.                                enum AVSampleFormat sample_fmt, int align)
110. {

libavutil/samplefmt.c:108:1: Parameter `nb_samples`
        106. }
        107. 
        108. int av_samples_get_buffer_size(int *linesize, int nb_channels, int nb_samples,
             ^
        109.                                enum AVSampleFormat sample_fmt, int align)
        110. {

libavutil/samplefmt.c:124:9: Binary operation: ([1, 2147483616] + 32):signed32 by call to `av_frame_ref` 
        122.             return AVERROR(EINVAL);
        123.         align = 1;
        124.         nb_samples = FFALIGN(nb_samples, 32);
                     ^
        125.     }
        126. 
