From 3817c7c732367dbddf7e3942074d5e2f91cc2e0f Mon Sep 17 00:00:00 2001
From: Marco Paniconi <marpan@google.com>
Date: Mon, 6 Jan 2014 16:03:13 -0800
Subject: [PATCH] Code cleanup: remove unneeded lines.

Change-Id: I44a89b822a436299b9dd4ff26ad2e35767c29c58
---
 vp9/encoder/vp9_ratectrl.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/vp9/encoder/vp9_ratectrl.c b/vp9/encoder/vp9_ratectrl.c
index bae87b7145..b90a7c3a3e 100644
--- a/vp9/encoder/vp9_ratectrl.c
+++ b/vp9/encoder/vp9_ratectrl.c
@@ -374,8 +374,6 @@ static int target_size_from_buffer_level(const VP9_COMP *cpi) {
         / one_percent_bits);
     if (percent_low > cpi->oxcf.under_shoot_pct) {
       percent_low = cpi->oxcf.under_shoot_pct;
-    } else if (percent_low < 0) {
-      percent_low = 0;
     }
     // Lower the target bandwidth for this frame.
     this_frame_target -= (this_frame_target * percent_low) / 200;
@@ -384,8 +382,6 @@ static int target_size_from_buffer_level(const VP9_COMP *cpi) {
         / one_percent_bits);
     if (percent_high > cpi->oxcf.over_shoot_pct) {
       percent_high = cpi->oxcf.over_shoot_pct;
-    } else if (percent_high < 0) {
-      percent_high = 0;
     }
     // Increase the target bandwidth for this frame.
     this_frame_target += (this_frame_target * percent_high) / 200;
-- 
GitLab