libavcodec/h261dec.c:585: error: Buffer Overrun L2
  Offset: [0, 1000] Size: 8 by call to `MPV_common_end`.

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:585:9: Call
583.         ParseContext pc= s->parse_context; //FIXME move this demuxing hack to libavformat
584.         s->parse_context.buffer=0;
585.         MPV_common_end(s);
             ^
586.         s->parse_context= pc;
587.     }

libavcodec/mpegvideo.c:591:1: <Offset trace>
589. 
590. /* init common structure for both encoder and decoder */
591. void MPV_common_end(MpegEncContext *s)
     ^
592. {
593.     int i, j, k;

libavcodec/mpegvideo.c:591:1: Parameter `s->avctx->thread_count`
  589. 
  590. /* init common structure for both encoder and decoder */
  591. void MPV_common_end(MpegEncContext *s)
       ^
  592. {
  593.     int i, j, k;

libavcodec/mpegvideo.c:591:1: <Length trace>
589. 
590. /* init common structure for both encoder and decoder */
591. void MPV_common_end(MpegEncContext *s)
     ^
592. {
593.     int i, j, k;

libavcodec/mpegvideo.c:591:1: Parameter `s->thread_context[*]`
  589. 
  590. /* init common structure for both encoder and decoder */
  591. void MPV_common_end(MpegEncContext *s)
       ^
  592. {
  593.     int i, j, k;

libavcodec/mpegvideo.c:596:32: Array access: Offset: [0, 1000] Size: 8 by call to `MPV_common_end` 
  594. 
  595.     for(i=0; i<s->avctx->thread_count; i++){
  596.         free_duplicate_context(s->thread_context[i]);
                                      ^
  597.     }
  598.     for(i=1; i<s->avctx->thread_count; i++){
