From 7a19474d5df9825d73624eddc727c32c08b5c1b9 Mon Sep 17 00:00:00 2001 From: Yaowu Xu Date: Wed, 19 Dec 2018 16:49:08 -0800 Subject: [PATCH] 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 --- vp9/encoder/vp9_rd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vp9/encoder/vp9_rd.c b/vp9/encoder/vp9_rd.c index c01e5f8..894b149 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; -- 2.7.4