Browse code

fixing MVs in hq mode

Originally committed as revision 372 to svn://svn.ffmpeg.org/ffmpeg/trunk

Michael Niedermayer authored on 2002/04/02 02:40:42
Showing 1 changed files
... ...
@@ -1009,6 +1009,9 @@ void estimate_motion(MpegEncContext * s,
1009 1009
         if (varc*2 + 200 > vard){
1010 1010
             mb_type|= MB_TYPE_INTER;
1011 1011
             halfpel_motion_search(s, &mx, &my, dmin, xmin, ymin, xmax, ymax, pred_x, pred_y);
1012
+        }else{
1013
+            mx = mx*2 - mb_x*32;
1014
+            my = my*2 - mb_y*32;
1012 1015
         }
1013 1016
     }else{
1014 1017
         if (vard <= 64 || vard < varc) {