shithub: libvpx

Download patch

ref: 07dd7054980d5720e21a2bee9aa26fc3c058fef4
parent: e5930d5b77e5c4a78299454c5db66c9ca5729708
parent: 603500055e2e5b4858d6e8ccc8f609a9b68eda76
author: Dmitry Kovalev <dkovalev@google.com>
date: Mon Apr 14 06:29:22 EDT 2014

Merge "Removing redundant checks from vp9_change_config()."

--- a/vp9/encoder/vp9_onyx_if.c
+++ b/vp9/encoder/vp9_onyx_if.c
@@ -815,11 +815,8 @@
   cm->display_width = cpi->oxcf.width;
   cm->display_height = cpi->oxcf.height;
 
-  // VP8 sharpness level mapping 0-7 (vs 0-10 in general VPx dialogs)
-  cpi->oxcf.sharpness = MIN(7, cpi->oxcf.sharpness);
+  cm->lf.sharpness_level = cpi->oxcf.sharpness;
 
-  cpi->common.lf.sharpness_level = cpi->oxcf.sharpness;
-
   if (cpi->initial_width) {
     // Increasing the size of the frame beyond the first seen frame, or some
     // otherwise signaled maximum size, is not supported.
@@ -837,10 +834,6 @@
   }
 
   cpi->speed = abs(cpi->oxcf.cpu_used);
-
-  // Limit on lag buffers as these are not currently dynamically allocated.
-  if (cpi->oxcf.lag_in_frames > MAX_LAG_BUFFERS)
-    cpi->oxcf.lag_in_frames = MAX_LAG_BUFFERS;
 
 #if CONFIG_MULTIPLE_ARF
   vp9_zero(cpi->alt_ref_source);