]> granicus.if.org Git - libvpx/commitdiff
[spatial svc] Remove hard coded rc_end_usage setting
authorMinghai Shang <minghai@google.com>
Wed, 21 May 2014 18:18:06 +0000 (11:18 -0700)
committerMinghai Shang <minghai@google.com>
Wed, 21 May 2014 18:18:06 +0000 (11:18 -0700)
Change-Id: Ifb09502ddf62664b3bfc62172de46bc36fde8efb

examples/vp9_spatial_svc_encoder.c
vpx/src/svc_encodeframe.c

index 983f52d93f142f33602b8fadee71dc183b602bf5..5bc65757645513516ed1cc9ecea46b384523f736 100644 (file)
@@ -150,6 +150,7 @@ static void parse_command_line(int argc, const char **argv_,
   enc_cfg->rc_target_bitrate = default_bitrate;
   enc_cfg->kf_min_dist = default_kf_dist;
   enc_cfg->kf_max_dist = default_kf_dist;
+  enc_cfg->rc_end_usage = VPX_CQ;
 
   // initialize AppInput with default values
   app_input->frames_to_code = default_frames_to_code;
index 4009a8a42d1aa3049b77a51fbe63be39537ff60d..7ce7ab6b0fd485a6abbe5c0a472f5b4c41076338 100644 (file)
@@ -580,7 +580,6 @@ vpx_codec_err_t vpx_svc_init(SvcContext *svc_ctx, vpx_codec_ctx_t *codec_ctx,
   // TODO(ivanmaltz): determine if these values need to be set explicitly for
   // svc, or if the normal default/override mechanism can be used
   enc_cfg->rc_dropframe_thresh = 0;
-  enc_cfg->rc_end_usage = VPX_CBR;
   enc_cfg->rc_resize_allowed = 0;
 
   if (enc_cfg->g_pass == VPX_RC_ONE_PASS) {