libavcodec/h261dec.c:569: error: Buffer Overrun L2
  Offset: [0, 1001] Size: 54 by call to `MPV_common_init`.

libavcodec/h261dec.c:579:11: Call
577.     }
578. 
579.     ret = h261_decode_picture_header(h);
               ^
580. 
581.     /* skip if the header was thrashed */

libavcodec/h261dec.c:465:38: Assignment
  463.     s->picture_number = (s->picture_number&~31) + i;
  464. 
  465.     s->avctx->time_base= (AVRational){1001, 30000};
                                            ^
  466.     s->current_picture.pts= s->picture_number;
  467. 

libavcodec/h261dec.c:569:13: Call
567. 
568.     if(!s->context_initialized){
569.         if (MPV_common_init(s) < 0) //we need the idct permutaton for reading a custom matrix
                 ^
570.             return -1;
571.     }

libavcodec/mpegvideo.c:443:9: Parameter `s->avctx->pix_fmt`
  441.  * this assumes that some variables like width/height are already set
  442.  */
  443. av_cold int MPV_common_init(MpegEncContext *s)
               ^
  444. {
  445.     int y_size, c_size, yc_size, i, mb_array_size, mv_table_size, x, y, threads;

libavcodec/mpegvideo.c:479:5: Call
  477. 
  478.     /* set chroma shifts */
  479.     avcodec_get_chroma_sub_sample(s->avctx->pix_fmt,&(s->chroma_x_shift),
           ^
  480.                                                     &(s->chroma_y_shift) );
  481. 

libavcodec/imgconvert.c:478:1: <Offset trace>
476. };
477. 
478. void avcodec_get_chroma_sub_sample(enum PixelFormat pix_fmt, int *h_shift, int *v_shift)
     ^
479. {
480.     *h_shift = pix_fmt_info[pix_fmt].x_chroma_shift;

libavcodec/imgconvert.c:478:1: Parameter `pix_fmt`
    476. };
    477. 
    478. void avcodec_get_chroma_sub_sample(enum PixelFormat pix_fmt, int *h_shift, int *v_shift)
         ^
    479. {
    480.     *h_shift = pix_fmt_info[pix_fmt].x_chroma_shift;

libavcodec/imgconvert.c:67:1: <Length trace>
65. 
66. /* this table gives more information about formats */
67. static const PixFmtInfo pix_fmt_info[PIX_FMT_NB] = {
    ^
68.     /* YUV formats */
69.     [PIX_FMT_YUV420P] = {

libavcodec/imgconvert.c:67:1: Array declaration
    65. 
    66. /* this table gives more information about formats */
    67. static const PixFmtInfo pix_fmt_info[PIX_FMT_NB] = {
        ^
    68.     /* YUV formats */
    69.     [PIX_FMT_YUV420P] = {

libavcodec/imgconvert.c:480:16: Array access: Offset: [0, 1001] Size: 54 by call to `MPV_common_init` 
    478. void avcodec_get_chroma_sub_sample(enum PixelFormat pix_fmt, int *h_shift, int *v_shift)
    479. {
    480.     *h_shift = pix_fmt_info[pix_fmt].x_chroma_shift;
                        ^
    481.     *v_shift = pix_fmt_info[pix_fmt].y_chroma_shift;
    482. }
