diff options
author | Marco <marpan@google.com> | 2017-05-10 16:18:14 -0700 |
---|---|---|
committer | Marco <marpan@google.com> | 2017-05-10 16:19:23 -0700 |
commit | eaa6715b02b3ec63fc3a24e62ac2e36e93298c4b (patch) | |
tree | fe88e31ef5e80ba9e30603adf79925ea8c4bcf47 | |
parent | 2574573feaf47c685ccd9de72f300c043c615d2f (diff) | |
download | libvpx-eaa6715b02b3ec63fc3a24e62ac2e36e93298c4b.tar libvpx-eaa6715b02b3ec63fc3a24e62ac2e36e93298c4b.tar.gz libvpx-eaa6715b02b3ec63fc3a24e62ac2e36e93298c4b.tar.bz2 libvpx-eaa6715b02b3ec63fc3a24e62ac2e36e93298c4b.zip |
vp9: SVC: Fix setting in sample encoder.
For 1 spatial layer case, scaling_num/den was not set properly.
Change-Id: I139bf70c6dffde89eed24e435bcb5d98d2029bcd
-rw-r--r-- | vpx/src/svc_encodeframe.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vpx/src/svc_encodeframe.c b/vpx/src/svc_encodeframe.c index c2f80d885..c774abb34 100644 --- a/vpx/src/svc_encodeframe.c +++ b/vpx/src/svc_encodeframe.c @@ -436,6 +436,10 @@ vpx_codec_err_t vpx_svc_init(SvcContext *svc_ctx, vpx_codec_ctx_t *codec_ctx, si->svc_params.scaling_factor_num[sl] = DEFAULT_SCALE_FACTORS_NUM_2x[sl2]; si->svc_params.scaling_factor_den[sl] = DEFAULT_SCALE_FACTORS_DEN_2x[sl2]; } + if (svc_ctx->spatial_layers == 1) { + si->svc_params.scaling_factor_num[0] = 1; + si->svc_params.scaling_factor_den[0] = 1; + } } for (tl = 0; tl < svc_ctx->temporal_layers; ++tl) { for (sl = 0; sl < svc_ctx->spatial_layers; ++sl) { |