diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-04-01 17:40:42 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-04-01 17:40:42 +0000 |
commit | c60cf138bd82cf80a2b239cf5f48fbf9ff0a125c (patch) | |
tree | 6339321a58609b9a721a69da603fe73f2efff406 | |
parent | b7dc6f662868fbdad779c61c233b1d19d8b89d3c (diff) | |
download | ffmpeg-c60cf138bd82cf80a2b239cf5f48fbf9ff0a125c.tar.gz |
fixing MVs in hq mode
Originally committed as revision 372 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/motion_est.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/motion_est.c b/libavcodec/motion_est.c index e806868a0a..3779afe0f8 100644 --- a/libavcodec/motion_est.c +++ b/libavcodec/motion_est.c @@ -1009,6 +1009,9 @@ void estimate_motion(MpegEncContext * s, if (varc*2 + 200 > vard){ mb_type|= MB_TYPE_INTER; halfpel_motion_search(s, &mx, &my, dmin, xmin, ymin, xmax, ymax, pred_x, pred_y); + }else{ + mx = mx*2 - mb_x*32; + my = my*2 - mb_y*32; } }else{ if (vard <= 64 || vard < varc) { |