changeset 304:5753d57e7e6b libavcodec

fixing MVs in hq mode
author michaelni
date Mon, 01 Apr 2002 17:40:42 +0000
parents 9a931fd8d06c
children 1de85b419387
files motion_est.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/motion_est.c	Mon Apr 01 13:24:47 2002 +0000
+++ b/motion_est.c	Mon Apr 01 17:40:42 2002 +0000
@@ -1009,6 +1009,9 @@
         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) {