From 84615e406a1e581ebfa805109c8e7864cdc8373f Mon Sep 17 00:00:00 2001 From: Joose Sainio Date: Fri, 27 Sep 2019 14:20:08 +0300 Subject: [PATCH] fix compiler warnings --- src/rate_control.c | 1 - src/search.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rate_control.c b/src/rate_control.c index b18b7a78..3eaa5ada 100644 --- a/src/rate_control.c +++ b/src/rate_control.c @@ -372,7 +372,6 @@ static double get_ctu_bits(encoder_state_t * const state, vector2d_t pos) { double temp_lambda = state->frame->lambda; double taylor_e3 = 0.0; int iter = 0; - double est_lambda = temp_lambda; for (int i = index; i < num_ctu; i++) { total_weight += state->frame->lcu_stats[i].weight; diff --git a/src/search.c b/src/search.c index 5622c736..d6504c93 100644 --- a/src/search.c +++ b/src/search.c @@ -938,7 +938,7 @@ void kvz_search_lcu(encoder_state_t * const state, const int x, const int y, con } // Start search from depth 0. - double cost = search_cu(state, x, y, 0, work_tree); + search_cu(state, x, y, 0, work_tree); // Save squared cost for rate control. // kvz_get_lcu_stats(state, x / LCU_WIDTH, y / LCU_WIDTH)->weight = cost * cost;