shithub: libvpx

Download patch

ref: 4611f24797fdb8c3f694d89a5ab035739a669c90
parent: f2d682fc108225c23b0b9547a2a39105b9128073
author: Yaowu Xu <yaowu@google.com>
date: Mon Mar 16 11:19:37 EDT 2015

Remove duplicate clamping

The mvs are clamped in the vp9_find_best_ref_mvs() already.

Change-Id: I9bea5e35aef6007466fe7fca4bc2dc5c17e74222

--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -755,8 +755,6 @@
       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,