]> git.videolan.org Git - x264.git/commitdiff
Fix mv predictor clipping on non-x86 (regression in r1548)
authorLoren Merritt <pengvado@akuvian.org>
Sat, 24 Apr 2010 16:22:14 +0000 (16:22 +0000)
committerLoren Merritt <pengvado@akuvian.org>
Sat, 24 Apr 2010 16:22:14 +0000 (16:22 +0000)
common/common.h

index 7bc6a1f07aa4f4a93fd31adbbf78f166d73127e7..44f8c1aaca21b45b8991ff19ccd682ba26256e84 100644 (file)
@@ -195,7 +195,7 @@ static void ALWAYS_INLINE x264_predictor_roundclip( int16_t (*mvc)[2], int i_mvc
         int mx = (mvc[i][0] + 2) >> 2;
         int my = (mvc[i][1] + 2) >> 2;
         mvc[i][0] = x264_clip3( mx, mv_x_min, mv_x_max );
-        mvc[i][0] = x264_clip3( my, mv_y_min, mv_y_max );
+        mvc[i][1] = x264_clip3( my, mv_y_min, mv_y_max );
     }
 }