From 39aef4023639857d282d65524ac9b5c091df176b Mon Sep 17 00:00:00 2001 From: Minghai Shang Date: Wed, 21 May 2014 11:18:06 -0700 Subject: [PATCH] [spatial svc] Remove hard coded rc_end_usage setting Change-Id: Ifb09502ddf62664b3bfc62172de46bc36fde8efb --- examples/vp9_spatial_svc_encoder.c | 1 + vpx/src/svc_encodeframe.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/vp9_spatial_svc_encoder.c b/examples/vp9_spatial_svc_encoder.c index 983f52d93..5bc657576 100644 --- a/examples/vp9_spatial_svc_encoder.c +++ b/examples/vp9_spatial_svc_encoder.c @@ -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; diff --git a/vpx/src/svc_encodeframe.c b/vpx/src/svc_encodeframe.c index 4009a8a42..7ce7ab6b0 100644 --- a/vpx/src/svc_encodeframe.c +++ b/vpx/src/svc_encodeframe.c @@ -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) { -- 2.40.0