]> granicus.if.org Git - libvpx/commitdiff
vp9_cx_iface.c: allow speed greater than 7
authorGuillaume Martres <smarter3@gmail.com>
Tue, 8 Jul 2014 13:52:33 +0000 (15:52 +0200)
committerGuillaume Martres <smarter3@gmail.com>
Tue, 8 Jul 2014 13:58:42 +0000 (15:58 +0200)
This makes it possible to use --rt --cpu-used=8.

Change-Id: I8b5bc4449b6e05d24d25145e35b4793501268c59

vp9/vp9_cx_iface.c

index b1501619eea31447698ec1fc721ea12429bad5fc..24dcbfa1c8566c1b998f127e2e1970ee4a8ebbf2 100644 (file)
@@ -353,7 +353,7 @@ static vpx_codec_err_t set_encoder_config(
 
   oxcf->key_freq               = cfg->kf_max_dist;
 
-  oxcf->speed                  =  clamp(abs(extra_cfg->cpu_used), 0, 7);
+  oxcf->speed                  =  abs(extra_cfg->cpu_used);
   oxcf->encode_breakout        =  extra_cfg->static_thresh;
   oxcf->play_alternate         =  extra_cfg->enable_auto_alt_ref;
   oxcf->noise_sensitivity      =  extra_cfg->noise_sensitivity;