changeset 3268:f7a9d8dd476b libavcodec

10l in h264 vismb/vismv (broke on 2006-03-09)
author lorenm
date Fri, 21 Apr 2006 19:22:14 +0000
parents 8072ed8993f6
children c925a46f7594
files mpegvideo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);