]> granicus.if.org Git - libvpx/commitdiff
vp9 svc: Update temporal_layering_mode in config change.
authorJerome Jiang <jianj@google.com>
Fri, 26 Jan 2018 21:38:04 +0000 (13:38 -0800)
committerJerome Jiang <jianj@google.com>
Fri, 26 Jan 2018 21:38:04 +0000 (13:38 -0800)
temporal_layering_mode can be changed on the fly.

BUG=webm:1488

Change-Id: I223fd4085184e41878ddf0f9244d2e3d07636ae3

vp9/encoder/vp9_svc_layercontext.c

index eb39bab25f678985e7e1ea227eabaa1da71a79e7..35d5ec3e068c5bab021bd658fec63326d8867842 100644 (file)
@@ -155,6 +155,8 @@ void vp9_update_layer_context_change_config(VP9_COMP *const cpi,
   int sl, tl, layer = 0, spatial_layer_target;
   float bitrate_alloc = 1.0;
 
+  cpi->svc.temporal_layering_mode = oxcf->temporal_layering_mode;
+
   if (svc->temporal_layering_mode != VP9E_TEMPORAL_LAYERING_MODE_NOLAYERING) {
     for (sl = 0; sl < oxcf->ss_number_layers; ++sl) {
       for (tl = 0; tl < oxcf->ts_number_layers; ++tl) {