aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoren Merritt <lorenm@u.washington.edu>2006-04-21 19:22:14 +0000
committerLoren Merritt <lorenm@u.washington.edu>2006-04-21 19:22:14 +0000
commitc6f9e821c36feda62c7b26c42378d5d2040316bf (patch)
tree4402be41709aa96a50475bcfdb128897673bf8ea
parentc2ea5f060ca0cc76574ee9bd6e3e96af7cdb0e77 (diff)
downloadffmpeg-c6f9e821c36feda62c7b26c42378d5d2040316bf.tar.gz
10l in h264 vismb/vismv (broke on 2006-03-09)
Originally committed as revision 5309 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/mpegvideo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 847bcddc03..c4fef9c3a1 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -1831,7 +1831,7 @@ void ff_print_debug_info(MpegEncContext *s, AVFrame *pict){
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);