summaryrefslogtreecommitdiff
path: root/vpx
diff options
context:
space:
mode:
authorMinghai Shang <minghai@google.com>2014-10-14 16:25:03 -0700
committerMinghai Shang <minghai@google.com>2014-10-14 16:26:39 -0700
commitc113457af9880b8e15a36cdaabfd414d1c245693 (patch)
tree367ded1111a9d288fd1bf39f3c80f1dbb88e2818 /vpx
parent2040bb58fbec7d06d5bdb1f6628bb058d3132ebf (diff)
downloadlibvpx-c113457af9880b8e15a36cdaabfd414d1c245693.tar
libvpx-c113457af9880b8e15a36cdaabfd414d1c245693.tar.gz
libvpx-c113457af9880b8e15a36cdaabfd414d1c245693.tar.bz2
libvpx-c113457af9880b8e15a36cdaabfd414d1c245693.zip
[spatial svc]Another workaround to avoid using prev_mi
We encode a empty invisible frame in front of the base layer frame to avoid using prev_mi. Since there's a restriction for reference frame scaling factor, we have to make it smaller and smaller gradually until its size is 16x16. Change-Id: I60b680314e33a60b4093cafc296465ee18169c19
Diffstat (limited to 'vpx')
-rw-r--r--vpx/src/svc_encodeframe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vpx/src/svc_encodeframe.c b/vpx/src/svc_encodeframe.c
index 773087ddc..fa3409c69 100644
--- a/vpx/src/svc_encodeframe.c
+++ b/vpx/src/svc_encodeframe.c
@@ -350,7 +350,7 @@ void assign_layer_bitrates(const SvcContext *svc_ctx,
}
}
- 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);