From c113457af9880b8e15a36cdaabfd414d1c245693 Mon Sep 17 00:00:00 2001 From: Minghai Shang Date: Tue, 14 Oct 2014 16:25:03 -0700 Subject: [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 --- vpx/src/svc_encodeframe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vpx/src') 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); -- cgit v1.2.3