summaryrefslogtreecommitdiff
path: root/vp9
diff options
context:
space:
mode:
authorYaowu Xu <yaowu@google.com>2018-12-19 16:49:08 -0800
committerYaowu Xu <yaowu@google.com>2018-12-20 01:14:07 +0000
commit7a19474d5df9825d73624eddc727c32c08b5c1b9 (patch)
treeb1ea22c9d9187ebe303fdc85d546767dd092c5b1 /vp9
parent632ee6aa76df257a90430387eca6a6e79780491f (diff)
downloadlibvpx-7a19474d5df9825d73624eddc727c32c08b5c1b9.tar
libvpx-7a19474d5df9825d73624eddc727c32c08b5c1b9.tar.gz
libvpx-7a19474d5df9825d73624eddc727c32c08b5c1b9.tar.bz2
libvpx-7a19474d5df9825d73624eddc727c32c08b5c1b9.zip
Remove a special case
The special case was put in to prevent a lossless test failure, the issue has been dealt with by a recent fix of skip condition in lossless mode. Change-Id: Ia25d2bf6beead2208841b4f012171dffac15f411
Diffstat (limited to 'vp9')
-rw-r--r--vp9/encoder/vp9_rd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/vp9/encoder/vp9_rd.c b/vp9/encoder/vp9_rd.c
index c01e5f81b..894b1497b 100644
--- a/vp9/encoder/vp9_rd.c
+++ b/vp9/encoder/vp9_rd.c
@@ -179,9 +179,7 @@ int vp9_compute_rd_mult_based_on_qindex(const VP9_COMP *cpi, int qindex) {
uint32_t rdmult = q * q;
if (cpi->common.frame_type != KEY_FRAME) {
- if (qindex < 1)
- rdmult = rdmult * 3 + (rdmult * 2 / 3);
- else if (qindex < 128)
+ if (qindex < 128)
rdmult = rdmult * 4;
else if (qindex < 190)
rdmult = rdmult * 4 + rdmult / 2;