aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/wmv2.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-04-16 01:01:45 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-04-16 01:01:45 +0000
commit137c8468e840e31f9399997b95e02341c67d0a31 (patch)
tree5b05f1f9d27b864e880fb9842a7b24b07f4b7ede /libavcodec/wmv2.c
parent37f5cd5a18a8e08a18814d1aca828c92ee398d10 (diff)
downloadffmpeg-137c8468e840e31f9399997b95e02341c67d0a31.tar.gz
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
Diffstat (limited to 'libavcodec/wmv2.c')
-rw-r--r--libavcodec/wmv2.c4
1 files changed, 2 insertions, 2 deletions
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];