summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_rdopt.c
diff options
context:
space:
mode:
authorDeb Mukherjee <debargha@google.com>2014-02-14 11:15:29 -0800
committerDeb Mukherjee <debargha@google.com>2014-02-14 14:28:58 -0800
commit56835f1bdd0737be67b7b86d472af51aa969d758 (patch)
tree218128981f60943eb51d294bb719e0ba8e84db75 /vp9/encoder/vp9_rdopt.c
parent323a7120b9e92cd9e59ab7e72097a461d1324fd8 (diff)
downloadlibvpx-56835f1bdd0737be67b7b86d472af51aa969d758.tar
libvpx-56835f1bdd0737be67b7b86d472af51aa969d758.tar.gz
libvpx-56835f1bdd0737be67b7b86d472af51aa969d758.tar.bz2
libvpx-56835f1bdd0737be67b7b86d472af51aa969d758.zip
Make cpi->speed always positive
Minor fix to ensure that positive and negative cpu_used values produce the same output. Change-Id: I9157d05cb9a7c0bd57a4d8a9f268205a825b9b0b
Diffstat (limited to 'vp9/encoder/vp9_rdopt.c')
-rw-r--r--vp9/encoder/vp9_rdopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vp9/encoder/vp9_rdopt.c b/vp9/encoder/vp9_rdopt.c
index dfe39e871..a3e879b82 100644
--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -447,7 +447,7 @@ static void model_rd_for_sb(VP9_COMP *cpi, BLOCK_SIZE bsize,
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;