]> granicus.if.org Git - libvpx/commitdiff
Remove duplicate clamping
authorYaowu Xu <yaowu@google.com>
Mon, 16 Mar 2015 22:19:37 +0000 (15:19 -0700)
committerYaowu Xu <yaowu@google.com>
Mon, 16 Mar 2015 22:19:37 +0000 (15:19 -0700)
The mvs are clamped in the vp9_find_best_ref_mvs() already.

Change-Id: I9bea5e35aef6007466fe7fca4bc2dc5c17e74222

vp9/encoder/vp9_pickmode.c

index 4dc226b2d55391c03cccf94d01219cd7777f3179..5c4b2c68e2819d412dbb2d7832d5e2affe8370b0 100644 (file)
@@ -755,8 +755,6 @@ void vp9_pick_inter_mode(VP9_COMP *cpi, MACROBLOCK *x,
       vp9_find_best_ref_mvs(xd, cm->allow_high_precision_mv, candidates,
                             &frame_mv[NEARESTMV][ref_frame],
                             &frame_mv[NEARMV][ref_frame]);
-      clamp_mv2(&frame_mv[NEARESTMV][ref_frame].as_mv, xd);
-      clamp_mv2(&frame_mv[NEARMV][ref_frame].as_mv, xd);
 
       if (!vp9_is_scaled(sf) && bsize >= BLOCK_8X8)
         vp9_mv_pred(cpi, x, yv12_mb[ref_frame][0].buf, yv12->y_stride,