shithub: libvpx

Download patch

ref: cb0d8ce313a5524d54304cba0a4bce139abe2c38
parent: 973726c38bb0fd64fb14b1c95caabe52bd39d17d
parent: 3359c1e5ddd18de6ace98aacdd0e38550999275e
author: James Zern <jzern@google.com>
date: Fri Mar 12 14:44:42 EST 2021

Merge "vp8: restrict 1st pass cpu_used range"

--- a/vp8/vp8_cx_iface.c
+++ b/vp8/vp8_cx_iface.c
@@ -378,6 +378,9 @@
 #endif
 
   oxcf->cpu_used = vp8_cfg.cpu_used;
+  if (cfg.g_pass == VPX_RC_FIRST_PASS) {
+    oxcf->cpu_used = VPXMAX(4, oxcf->cpu_used);
+  }
   oxcf->encode_breakout = vp8_cfg.static_thresh;
   oxcf->play_alternate = vp8_cfg.enable_auto_alt_ref;
   oxcf->noise_sensitivity = vp8_cfg.noise_sensitivity;