]> granicus.if.org Git - libvpx/commitdiff
Code cleanup: remove unneeded lines.
authorMarco Paniconi <marpan@google.com>
Tue, 7 Jan 2014 00:03:13 +0000 (16:03 -0800)
committerMarco Paniconi <marpan@google.com>
Tue, 7 Jan 2014 00:04:48 +0000 (16:04 -0800)
Change-Id: I44a89b822a436299b9dd4ff26ad2e35767c29c58

vp9/encoder/vp9_ratectrl.c

index bae87b71456d4fe0a23c24e05fbd1e659ef9a81b..b90a7c3a3e4e2847a0e2a79f4edfb3c0f3e1158b 100644 (file)
@@ -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;