From 137c8468e840e31f9399997b95e02341c67d0a31 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 16 Apr 2004 01:01:45 +0000 Subject: unify table indexing (motion_val,dc_val,ac_val,coded_block changed) minor +-1 bugfix Originally committed as revision 3016 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/wmv2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavcodec/wmv2.c') diff --git a/libavcodec/wmv2.c b/libavcodec/wmv2.c index 130a7f89d9..5ea6224b7c 100644 --- a/libavcodec/wmv2.c +++ b/libavcodec/wmv2.c @@ -216,7 +216,7 @@ void ff_wmv2_encode_mb(MpegEncContext * s, wmv2_inter_table[w->cbp_table_index][cbp + 64][0]); /* motion vector */ - h263_pred_motion(s, 0, &pred_x, &pred_y); + h263_pred_motion(s, 0, 0, &pred_x, &pred_y); msmpeg4_encode_motion(s, motion_x - pred_x, motion_y - pred_y); } else { @@ -504,7 +504,7 @@ static int16_t *wmv2_pred_motion(Wmv2Context *w, int *px, int *py){ int xy, wrap, diff, type; int16_t *A, *B, *C, *mot_val; - wrap = s->block_wrap[0]; + wrap = s->b8_stride; xy = s->block_index[0]; mot_val = s->current_picture.motion_val[0][xy]; -- cgit v1.2.3