Mercurial > libavcodec.hg
diff h264.c @ 2395:81516be6d0e4 libavcodec
vismv for h264 displayed incorrect motion vectors.
author | lorenm |
---|---|
date | Mon, 20 Dec 2004 03:03:37 +0000 |
parents | 299f2d85d27d |
children | 7e360068b653 |
line wrap: on
line diff
--- a/h264.c Sun Dec 19 12:26:54 2004 +0000 +++ b/h264.c Mon Dec 20 03:03:37 2004 +0000 @@ -203,7 +203,7 @@ uint16_t *mb2b_xy; //FIXME are these 4 a good idea? uint16_t *mb2b8_xy; - int b_stride; + int b_stride; //FIXME use s->b4_stride int b8_stride; int halfpel_flag; @@ -3035,8 +3035,8 @@ s->mb_width= h->sps.mb_width; s->mb_height= h->sps.mb_height; - h->b_stride= s->mb_width*4; - h->b8_stride= s->mb_width*2; + h->b_stride= s->mb_width*4 + 1; + h->b8_stride= s->mb_width*2 + 1; s->resync_mb_x = s->mb_x = first_mb_in_slice % s->mb_width; s->resync_mb_y = s->mb_y = first_mb_in_slice / s->mb_width; //FIXME AFFW