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

libavcodec/mpegvideo.c:1573:9: Call
1571.     pic->f->coded_picture_number = s->coded_picture_number++;
1572. 
1573.     if (alloc_picture(s, pic, 0) < 0)
              ^
1574.         return -1;
1575. 

libavcodec/mpegvideo.c:539:1: Parameter `pic->f->nb_samples`
  537. }
  538. 
  539. static int alloc_picture(MpegEncContext *s, Picture *pic, int shared)
       ^
  540. {
  541.     return ff_alloc_picture(s->avctx, pic, &s->me, &s->sc, shared, 0,

libavcodec/mpegvideo.c:541:12: Call
  539. static int alloc_picture(MpegEncContext *s, Picture *pic, int shared)
  540. {
  541.     return ff_alloc_picture(s->avctx, pic, &s->me, &s->sc, shared, 0,
                  ^
  542.                             s->chroma_x_shift, s->chroma_y_shift, s->out_format,
  543.                             s->mb_stride, s->mb_height, s->b8_stride,

libavcodec/mpegvideo.c:551:1: Parameter `pic->f->nb_samples`
    549.  * The pixels are allocated/set by calling get_buffer() if shared = 0
    550.  */
    551. int ff_alloc_picture(AVCodecContext *avctx, Picture *pic, MotionEstContext *me,
         ^
    552.                      ScratchpadContext *sc, int shared, int encoding,
    553.                      int chroma_x_shift, int chroma_y_shift, int out_format,

libavcodec/mpegvideo.c:564:13: Call
    562.     } else {
    563.         assert(!pic->f->buf[0]);
    564.         if (alloc_frame_buffer(avctx, pic, me, sc,
                     ^
    565.                                chroma_x_shift, chroma_y_shift,
    566.                                *linesize, *uvlinesize) < 0)

libavcodec/mpegvideo.c:375:1: Parameter `pic->f->nb_samples`
      373.  * Allocate a frame buffer
      374.  */
      375. static int alloc_frame_buffer(AVCodecContext *avctx, Picture *pic,
           ^
      376.                               MotionEstContext *me, ScratchpadContext *sc,
      377.                               int chroma_x_shift, int chroma_y_shift,

libavcodec/mpegvideo.c:398:13: Call
      396.         pic->f->height = avctx->height;
      397.         pic->f->format = avctx->pix_fmt;
      398.         r = avcodec_default_get_buffer2(avctx, pic->f, 0);
                       ^
      399.     }
      400. 

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. 
