# HG changeset patch # User michaelni # Date 1028102489 0 # Node ID 4d41fe7eb7806a7343d78598238ffe02985fa6a5 # Parent 54b1c94977d58f8ab2859ce4bbd0b78d70ac882f b frame direct mode bugfix (bug found by CM ) diff -r 54b1c94977d5 -r 4d41fe7eb780 motion_est.c --- a/motion_est.c Mon Jul 29 23:14:51 2002 +0000 +++ b/motion_est.c Wed Jul 31 08:01:29 2002 +0000 @@ -1434,7 +1434,7 @@ const int time_pb= time_pp - time_bp; int bx, by; int mx, my, mx2, my2; - uint8_t *ref_picture= s->me_scratchpad - (mb_x + 1 + (mb_y + 1)*s->linesize)*16; + uint8_t *ref_picture= s->me_scratchpad - (mb_x - 1 + (mb_y - 1)*s->linesize)*16; int16_t (*mv_table)[2]= s->b_direct_mv_table; uint16_t *mv_penalty= s->mv_penalty[s->f_code] + MAX_MV; // f_code of the prev frame