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

libavcodec/mpegvideo_enc.c:1399:17: Call
1397. 
1398.             pic->reference = s->reordered_input_picture[0]->reference;
1399.             if (alloc_picture(s, pic, 0) < 0) {
                      ^
1400.                 return -1;
1401.             }

libavcodec/mpegvideo_enc.c:946:1: Parameter `pic->f->nb_samples`
  944. }
  945. 
  946. static int alloc_picture(MpegEncContext *s, Picture *pic, int shared)
       ^
  947. {
  948.     return ff_alloc_picture(s->avctx, pic, &s->me, &s->sc, shared, 1,

libavcodec/mpegvideo_enc.c:948:12: Call
  946. static int alloc_picture(MpegEncContext *s, Picture *pic, int shared)
  947. {
  948.     return ff_alloc_picture(s->avctx, pic, &s->me, &s->sc, shared, 1,
                  ^
  949.                             s->chroma_x_shift, s->chroma_y_shift, s->out_format,
  950.                             s->mb_stride, s->mb_height, s->b8_stride,

libavcodec/mpegpicture.c:211:1: Parameter `pic->f->nb_samples`
    209.  * The pixels are allocated/set by calling get_buffer() if shared = 0
    210.  */
    211. int ff_alloc_picture(AVCodecContext *avctx, Picture *pic, MotionEstContext *me,
         ^
    212.                      ScratchpadContext *sc, int shared, int encoding,
    213.                      int chroma_x_shift, int chroma_y_shift, int out_format,

libavcodec/mpegpicture.c:224:13: Call
    222.     } else {
    223.         assert(!pic->f->buf[0]);
    224.         if (alloc_frame_buffer(avctx, pic, me, sc,
                     ^
    225.                                chroma_x_shift, chroma_y_shift,
    226.                                *linesize, *uvlinesize) < 0)

libavcodec/mpegpicture.c:85:1: Parameter `pic->f->nb_samples`
      83.  * Allocate a frame buffer
      84.  */
      85. static int alloc_frame_buffer(AVCodecContext *avctx,  Picture *pic,
          ^
      86.                               MotionEstContext *me, ScratchpadContext *sc,
      87.                               int chroma_x_shift, int chroma_y_shift,

libavcodec/mpegpicture.c:108:13: Call
      106.         pic->f->height = avctx->height;
      107.         pic->f->format = avctx->pix_fmt;
      108.         r = avcodec_default_get_buffer2(avctx, pic->f, 0);
                       ^
      109.     }
      110. 

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

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

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

libavcodec/utils.c:400:15: Call
          398. 
          399.         av_buffer_pool_uninit(&pool->pools[0]);
          400.         ret = av_samples_get_buffer_size(&pool->linesize[0], ch,
                             ^
          401.                                          frame->nb_samples, frame->format, 0);
          402.         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 `alloc_picture` 
            122.             return AVERROR(EINVAL);
            123.         align = 1;
            124.         nb_samples = FFALIGN(nb_samples, 32);
                         ^
            125.     }
            126. 
