From: Yaowu Xu Date: Thu, 20 Dec 2018 00:49:08 +0000 (-0800) Subject: Remove a special case X-Git-Tag: v1.8.0~45^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a19474d5df9825d73624eddc727c32c08b5c1b9;p=libvpx 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 --- 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;