From 4611f24797fdb8c3f694d89a5ab035739a669c90 Mon Sep 17 00:00:00 2001 From: Yaowu Xu Date: Mon, 16 Mar 2015 15:19:37 -0700 Subject: [PATCH] Remove duplicate clamping The mvs are clamped in the vp9_find_best_ref_mvs() already. Change-Id: I9bea5e35aef6007466fe7fca4bc2dc5c17e74222 --- vp9/encoder/vp9_pickmode.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/vp9/encoder/vp9_pickmode.c b/vp9/encoder/vp9_pickmode.c index 4dc226b2d..5c4b2c68e 100644 --- a/vp9/encoder/vp9_pickmode.c +++ b/vp9/encoder/vp9_pickmode.c @@ -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, -- 2.40.0