From 4d879945b27d18b3d8753c3b3121953a41e94e4a Mon Sep 17 00:00:00 2001 From: Tapio Katajisto Date: Thu, 15 May 2014 03:42:42 +0000 Subject: [PATCH] Fixed cost calculations in fme --- src/search.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/search.c b/src/search.c index 5b109775..4d00726c 100644 --- a/src/search.c +++ b/src/search.c @@ -459,8 +459,6 @@ static unsigned search_frac( const encoder_state * const encoder_state, cost = satd(tmp_pic,tmp_filtered); - cost = cost>>1; - cost += calc_mvd_cost(encoder_state, mv.x + pattern->x, mv.y + pattern->y, 1, mv_cand,merge_cand,num_cand,ref_idx, &bitcost); if (cost < best_cost) { @@ -501,8 +499,6 @@ static unsigned search_frac( const encoder_state * const encoder_state, cost = satd(tmp_pic,tmp_filtered); - cost = cost>>1; - cost += calc_mvd_cost(encoder_state, mv.x + pattern->x, mv.y + pattern->y, 0, mv_cand,merge_cand,num_cand,ref_idx, &bitcost); if (cost < best_cost) {