fix compiler warnings

This commit is contained in:
Joose Sainio 2019-09-27 14:20:08 +03:00
parent 14b7a75713
commit 84615e406a
2 changed files with 1 additions and 2 deletions

View file

@ -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;

View file

@ -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;