aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorLoren Merritt <lorenm@u.washington.edu>2004-12-20 03:03:37 +0000
committerLoren Merritt <lorenm@u.washington.edu>2004-12-20 03:03:37 +0000
commit650cec0c8c9b07943d4dbfdbbe56fb8f5d99d7ee (patch)
tree3844ed05956bc732030da2c44cbe5263e2f515e3 /libavcodec/h264.c
parentae895a40c55e25d0b62687cda2a871dfa1b1b8b0 (diff)
downloadffmpeg-650cec0c8c9b07943d4dbfdbbe56fb8f5d99d7ee.tar.gz
vismv for h264 displayed incorrect motion vectors.
Originally committed as revision 3765 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index e672028cd0..1b774329db 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -203,7 +203,7 @@ typedef struct H264Context{
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 @@ static int decode_slice_header(H264Context *h){
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