Index: source/libvpx/vpx/src/svc_encodeframe.c |
=================================================================== |
--- source/libvpx/vpx/src/svc_encodeframe.c (revision 292608) |
+++ source/libvpx/vpx/src/svc_encodeframe.c (working copy) |
@@ -350,7 +350,7 @@ |
} |
} |
- for (i = 0; i < svc_ctx->spatial_layers; ++i) { |
+ for (i = 0; i < VPX_SS_MAX_LAYERS; ++i) { |
if (total > 0) { |
enc_cfg->ss_target_bitrate[i] = (unsigned int) |
(enc_cfg->rc_target_bitrate * alloc_ratio[i] / total); |