summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2023-04-12 14:02:15 -0700
committerJames Zern <jzern@google.com>2023-04-12 14:57:28 -0700
commita3eb39ab6f22a09d06591db050bb07ede95fcd88 (patch)
tree38522a4a9e512febc5d68e4599018340e39e84f5 /examples
parentf254e6da84d564a5fbd2da7e0e1b31d81ba1dfba (diff)
downloadlibvpx-a3eb39ab6f22a09d06591db050bb07ede95fcd88.tar
libvpx-a3eb39ab6f22a09d06591db050bb07ede95fcd88.tar.gz
libvpx-a3eb39ab6f22a09d06591db050bb07ede95fcd88.tar.bz2
libvpx-a3eb39ab6f22a09d06591db050bb07ede95fcd88.zip
svc_encodeframe: clear -Wshadow warnings
Bug: webm:1793 Change-Id: Ib65a2dff124034d8e653572f8ada65984e55ed70
Diffstat (limited to 'examples')
-rw-r--r--examples/svc_encodeframe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/svc_encodeframe.c b/examples/svc_encodeframe.c
index c2b3ec979..1dd731765 100644
--- a/examples/svc_encodeframe.c
+++ b/examples/svc_encodeframe.c
@@ -381,7 +381,7 @@ vpx_codec_err_t vpx_svc_init(SvcContext *svc_ctx, vpx_codec_ctx_t *codec_ctx,
vpx_codec_iface_t *iface,
vpx_codec_enc_cfg_t *enc_cfg) {
vpx_codec_err_t res;
- int i, sl, tl;
+ int sl, tl;
SvcInternal_t *const si = get_svc_internal(svc_ctx);
if (svc_ctx == NULL || codec_ctx == NULL || iface == NULL ||
enc_cfg == NULL) {
@@ -433,7 +433,7 @@ vpx_codec_err_t vpx_svc_init(SvcContext *svc_ctx, vpx_codec_ctx_t *codec_ctx,
}
for (tl = 0; tl < svc_ctx->temporal_layers; ++tl) {
for (sl = 0; sl < svc_ctx->spatial_layers; ++sl) {
- i = sl * svc_ctx->temporal_layers + tl;
+ const int i = sl * svc_ctx->temporal_layers + tl;
si->svc_params.max_quantizers[i] = MAX_QUANTIZER;
si->svc_params.min_quantizers[i] = 0;
if (enc_cfg->rc_end_usage == VPX_CBR &&
@@ -503,7 +503,7 @@ vpx_codec_err_t vpx_svc_init(SvcContext *svc_ctx, vpx_codec_ctx_t *codec_ctx,
for (tl = 0; tl < svc_ctx->temporal_layers; ++tl) {
for (sl = 0; sl < svc_ctx->spatial_layers; ++sl) {
- i = sl * svc_ctx->temporal_layers + tl;
+ const int i = sl * svc_ctx->temporal_layers + tl;
if (enc_cfg->rc_end_usage == VPX_CBR &&
enc_cfg->g_pass == VPX_RC_ONE_PASS) {
si->svc_params.max_quantizers[i] = enc_cfg->rc_max_quantizer;