Commit ba9dd8a6 authored by Yaowu Xu's avatar Yaowu Xu
Browse files

Ensure valid cost table is used


Change-Id: I592016faeb4645cf43c599e0e2e11127e2a17c4e
parent 049a788c
......@@ -3427,7 +3427,8 @@ static void rd_pick_partition(const AV1_COMP *const cpi, ThreadData *td,
#endif // CONFIG_CB4X4
const int *partition_cost = x->partition_cost[pl];
const int *partition_cost =
pl >= 0 ? x->partition_cost[pl] : x->partition_cost[0];
int this_rate_nocoef, sum_rate_nocoef = 0, best_rate_nocoef = INT_MAX;
int abort_flag;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment