libavcodec/mpegvideo_enc.c:1009: error: Integer Overflow L2
  ([1, 2147483616] + 32):signed32 by call to `ff_alloc_picture`.

libavcodec/mpegvideo_enc.c:1009:17: Call
1007.             }
1008.         } else {
1009.             if (ff_alloc_picture(s, pic, 0) < 0) {
                      ^
1010.                 return -1;
1011.             }

libavcodec/mpegvideo.c:617:1: Parameter `pic->f->nb_samples`
  615.  * The pixels are allocated/set by calling get_buffer() if shared = 0
  616.  */
  617. int ff_alloc_picture(MpegEncContext *s, Picture *pic, int shared)
       ^
  618. {
  619.     int i, ret;

libavcodec/mpegvideo.c:627:13: Call
  625.         assert(!pic->f->buf[0]);
  626. 
  627.         if (alloc_frame_buffer(s, pic) < 0)
                   ^
  628.             return -1;
  629. 

libavcodec/mpegvideo.c:454:1: Parameter `pic->f->nb_samples`
    452.  * Allocate a frame buffer
    453.  */
    454. static int alloc_frame_buffer(MpegEncContext *s, Picture *pic)
         ^
    455. {
    456.     int edges_needed = av_codec_is_encoder(s->avctx->codec);

libavcodec/mpegvideo.c:474:13: Call
    472.         pic->f->height = s->avctx->height;
    473.         pic->f->format = s->avctx->pix_fmt;
    474.         r = avcodec_default_get_buffer2(s->avctx, pic->f, 0);
                     ^
    475.     }
    476. 

libavcodec/utils.c:509:1: Parameter `frame->nb_samples`
      507. }
      508. 
      509. int avcodec_default_get_buffer2(AVCodecContext *avctx, AVFrame *frame, int flags)
           ^
      510. {
      511.     int ret;

libavcodec/utils.c:513:16: Call
      511.     int ret;
      512. 
      513.     if ((ret = update_frame_pool(avctx, frame)) < 0)
                          ^
      514.         return ret;
      515. 

libavcodec/utils.c:332:1: Parameter `frame->nb_samples`
        330. }
        331. 
        332. static int update_frame_pool(AVCodecContext *avctx, AVFrame *frame)
             ^
        333. {
        334.     FramePool *pool = avctx->internal->pool;

libavcodec/utils.c:399:15: Call
        397. 
        398.         av_buffer_pool_uninit(&pool->pools[0]);
        399.         ret = av_samples_get_buffer_size(&pool->linesize[0], ch,
                           ^
        400.                                          frame->nb_samples, frame->format, 0);
        401.         if (ret < 0)

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 `ff_alloc_picture` 
          122.             return AVERROR(EINVAL);
          123.         align = 1;
          124.         nb_samples = FFALIGN(nb_samples, 32);
                       ^
          125.     }
          126. 
