diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-08-07 19:46:28 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-08-07 19:46:28 +0000 |
commit | 4b4e6ae115219bac7488463bfd74f2ca3faf031d (patch) | |
tree | 41ac133c9e1eb9b686ffe3d08c34fbeb15b04a18 /src/libffmpeg/libavcodec/motion_est.c | |
parent | a56d88fc434e5ee124867b1af13d6398ce5e9a5a (diff) | |
download | xine-lib-4b4e6ae115219bac7488463bfd74f2ca3faf031d.tar.gz xine-lib-4b4e6ae115219bac7488463bfd74f2ca3faf031d.tar.bz2 |
- sync with ffmpeg cvs
- apply Zdenek Kabelac patches to enable -fpic compiling (why this stuff isn't in
ffmpeg cvs?)
CVS patchset: 2402
CVS date: 2002/08/07 19:46:28
Diffstat (limited to 'src/libffmpeg/libavcodec/motion_est.c')
-rw-r--r-- | src/libffmpeg/libavcodec/motion_est.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libffmpeg/libavcodec/motion_est.c b/src/libffmpeg/libavcodec/motion_est.c index 21d1a74cb..ffc251da7 100644 --- a/src/libffmpeg/libavcodec/motion_est.c +++ b/src/libffmpeg/libavcodec/motion_est.c @@ -1434,7 +1434,7 @@ static inline int direct_search(MpegEncContext * s, 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 |