[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec mpegvideo.c,1.513,1.514

Loren Merritt CVS lorenm
Fri Apr 21 21:22:18 CEST 2006


Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv2956

Modified Files:
	mpegvideo.c 
Log Message:
10l in h264 vismb/vismv (broke on 2006-03-09)



Index: mpegvideo.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/mpegvideo.c,v
retrieving revision 1.513
retrieving revision 1.514
diff -u -d -r1.513 -r1.514
--- mpegvideo.c	31 Mar 2006 20:43:37 -0000	1.513
+++ mpegvideo.c	21 Apr 2006 19:22:14 -0000	1.514
@@ -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);





More information about the ffmpeg-cvslog mailing list