diff options
author | Deb Mukherjee <debargha@google.com> | 2014-02-14 11:15:29 -0800 |
---|---|---|
committer | Deb Mukherjee <debargha@google.com> | 2014-02-14 14:28:58 -0800 |
commit | 56835f1bdd0737be67b7b86d472af51aa969d758 (patch) | |
tree | 218128981f60943eb51d294bb719e0ba8e84db75 /vp9/encoder/vp9_rdopt.c | |
parent | 323a7120b9e92cd9e59ab7e72097a461d1324fd8 (diff) | |
download | libvpx-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.c | 2 |
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; |