# HG changeset patch # User lorenm # Date 1145647334 0 # Node ID f7a9d8dd476bd45fa3aca82744348fe887ae40d8 # Parent 8072ed8993f61532486cf0779e57ab54878daf27 10l in h264 vismb/vismv (broke on 2006-03-09) diff -r 8072ed8993f6 -r f7a9d8dd476b mpegvideo.c --- a/mpegvideo.c Thu Apr 20 19:23:57 2006 +0000 +++ b/mpegvideo.c Fri Apr 21 19:22:14 2006 +0000 @@ -1831,7 +1831,7 @@ const int width = s->avctx->width; const int height= s->avctx->height; const int mv_sample_log2= 4 - pict->motion_subsample_log2; - const int mv_stride= (s->mb_width << mv_sample_log2) + 1; + const int mv_stride= (s->mb_width << mv_sample_log2) + (s->codec_id == CODEC_ID_H264 ? 0 : 1); s->low_delay=0; //needed to see the vectors without trashing the buffers avcodec_get_chroma_sub_sample(s->avctx->pix_fmt, &h_chroma_shift, &v_chroma_shift);