From: Yunqing Wang Date: Mon, 13 Feb 2017 20:59:01 +0000 (-0800) Subject: Minor code style refactoring X-Git-Tag: v1.7.0~734^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f02451838766f9ef8c1fa738335f0c53d8d9b77e;p=libvpx Minor code style refactoring Change-Id: I20107693d0a87e08a10520bfb573ff3dcef69fdb --- diff --git a/vp9/encoder/vp9_ratectrl.c b/vp9/encoder/vp9_ratectrl.c index 03bc720a9..0b869a827 100644 --- a/vp9/encoder/vp9_ratectrl.c +++ b/vp9/encoder/vp9_ratectrl.c @@ -170,11 +170,9 @@ int vp9_convert_q_to_qindex(double q_val, vpx_bit_depth_t bit_depth) { int i; for (i = 0; i < QINDEX_RANGE; ++i) - if (vp9_convert_qindex_to_q(i, bit_depth) >= q_val) - break; + if (vp9_convert_qindex_to_q(i, bit_depth) >= q_val) break; - if (i == QINDEX_RANGE) - i--; + if (i == QINDEX_RANGE) i--; return i; }