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

libavcodec/h261dec.c:574:11: Call
572.     }
573. 
574.     ret = h261_decode_picture_header(h);
               ^
575. 
576.     /* skip if the header was thrashed */

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

libavcodec/h261dec.c:564:13: Call
562. 
563.     if(!s->context_initialized){
564.         if (MPV_common_init(s) < 0) //we need the idct permutaton for reading a custom matrix
                 ^
565.             return -1;
566.     }

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

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

libavcodec/imgconvert.c:384:1: <Offset trace>
382. };
383. 
384. void avcodec_get_chroma_sub_sample(int pix_fmt, int *h_shift, int *v_shift)
     ^
385. {
386.     *h_shift = pix_fmt_info[pix_fmt].x_chroma_shift;

libavcodec/imgconvert.c:384:1: Parameter `pix_fmt`
    382. };
    383. 
    384. void avcodec_get_chroma_sub_sample(int pix_fmt, int *h_shift, int *v_shift)
         ^
    385. {
    386.     *h_shift = pix_fmt_info[pix_fmt].x_chroma_shift;

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

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

libavcodec/imgconvert.c:386:16: Array access: Offset: [0, 1001] Size: 40 by call to `MPV_common_init` 
    384. void avcodec_get_chroma_sub_sample(int pix_fmt, int *h_shift, int *v_shift)
    385. {
    386.     *h_shift = pix_fmt_info[pix_fmt].x_chroma_shift;
                        ^
    387.     *v_shift = pix_fmt_info[pix_fmt].y_chroma_shift;
    388. }
