Minor fix to ensure that positive and negative cpu_used
values produce the same output.
Change-Id: I9157d05cb9a7c0bd57a4d8a9f268205a825b9b0b
update_layer_context_change_config(cpi, cpi->oxcf.target_bandwidth);
}
- cpi->speed = cpi->oxcf.cpu_used;
+ cpi->speed = abs(cpi->oxcf.cpu_used);
if (cpi->oxcf.lag_in_frames == 0) {
// Force allow_lag to 0 if lag_in_frames is 0.
x->pred_sse[ref] = sse;
// Fast approximate the modelling function.
- if (cpi->oxcf.cpu_used < -4) {
+ if (cpi->speed > 4) {
int rate;
int64_t dist;
int64_t square_error = sse;