summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_ratectrl.c
diff options
context:
space:
mode:
authorpaulwilkins <paulwilkins@google.com>2016-06-02 17:34:03 +0100
committerpaulwilkins <paulwilkins@google.com>2016-06-03 12:13:03 +0100
commit4328b08521f8d5a25ac08577007ceca3641e610f (patch)
tree6c33b6ca0b6b82c7fc28f2616d45453a63b83994 /vp9/encoder/vp9_ratectrl.c
parent7aef9790cf5acb01904708d95c32a735d473f980 (diff)
downloadlibvpx-4328b08521f8d5a25ac08577007ceca3641e610f.tar
libvpx-4328b08521f8d5a25ac08577007ceca3641e610f.tar.gz
libvpx-4328b08521f8d5a25ac08577007ceca3641e610f.tar.bz2
libvpx-4328b08521f8d5a25ac08577007ceca3641e610f.zip
Remove gf_zeromotion_pct.
The use of this value is preventing rate adjustment on clips or sections that have very little motion but high noise and this can give rise to some sections with massive overshoot. Change-Id: I9a65c7c1148dc5d3a7d8b23e50fc1733f3661621
Diffstat (limited to 'vp9/encoder/vp9_ratectrl.c')
-rw-r--r--vp9/encoder/vp9_ratectrl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/vp9/encoder/vp9_ratectrl.c b/vp9/encoder/vp9_ratectrl.c
index b8a5e6e7d..2ed305d82 100644
--- a/vp9/encoder/vp9_ratectrl.c
+++ b/vp9/encoder/vp9_ratectrl.c
@@ -1160,8 +1160,7 @@ static int rc_pick_q_and_bounds_two_pass(const VP9_COMP *cpi,
// Extension to max or min Q if undershoot or overshoot is outside
// the permitted range.
- if ((cpi->oxcf.rc_mode != VPX_Q) &&
- (cpi->twopass.gf_zeromotion_pct < VLOW_MOTION_THRESHOLD)) {
+ if (cpi->oxcf.rc_mode != VPX_Q) {
if (frame_is_intra_only(cm) ||
(!rc->is_src_frame_alt_ref &&
(cpi->refresh_golden_frame || cpi->refresh_alt_ref_frame))) {