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

libavcodec/h261dec.c:577:11: Call
575.     }
576. 
577.     ret = h261_decode_picture_header(h);
               ^
578. 
579.     /* 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:567:13: Call
565. 
566.     if(!s->context_initialized){
567.         if (MPV_common_init(s) < 0) //we need the idct permutaton for reading a custom matrix
                 ^
568.             return -1;
569.     }

libavcodec/mpegvideo.c:402:1: Parameter `s->avctx->pix_fmt`
  400.  * this assumes that some variables like width/height are already set
  401.  */
  402. int MPV_common_init(MpegEncContext *s)
       ^
  403. {
  404.     int y_size, c_size, yc_size, i, mb_array_size, mv_table_size, x, y, threads;

libavcodec/mpegvideo.c:430:5: Call
  428. 
  429.     /* set chroma shifts */
  430.     avcodec_get_chroma_sub_sample(s->avctx->pix_fmt,&(s->chroma_x_shift),
           ^
  431.                                                     &(s->chroma_y_shift) );
  432. 

libavcodec/imgconvert.c:400:1: <Offset trace>
398. };
399. 
400. void avcodec_get_chroma_sub_sample(int pix_fmt, int *h_shift, int *v_shift)
     ^
401. {
402.     *h_shift = pix_fmt_info[pix_fmt].x_chroma_shift;

libavcodec/imgconvert.c:400:1: Parameter `pix_fmt`
    398. };
    399. 
    400. void avcodec_get_chroma_sub_sample(int pix_fmt, int *h_shift, int *v_shift)
         ^
    401. {
    402.     *h_shift = pix_fmt_info[pix_fmt].x_chroma_shift;

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

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

libavcodec/imgconvert.c:402:16: Array access: Offset: [0, 1001] Size: 45 by call to `MPV_common_init` 
    400. void avcodec_get_chroma_sub_sample(int pix_fmt, int *h_shift, int *v_shift)
    401. {
    402.     *h_shift = pix_fmt_info[pix_fmt].x_chroma_shift;
                        ^
    403.     *v_shift = pix_fmt_info[pix_fmt].y_chroma_shift;
    404. }
