shithub: libvpx

Download patch

ref: 312745cac4b95635924522f274b76b481376324e
parent: 3223a3f892c9372f861b7e5f7973df6fefad0885
author: Marco Paniconi <marpan@google.com>
date: Mon Mar 12 08:18:35 EDT 2018

vp9-svc: Update layer frame counters when layer is skipped.

When an enhancement spatial layer is skipped, we should check
for updating the layer frame counters.

Change-Id: Ib79d0955c62fb465f59ef2f9ac45240ae2614d7b

--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -4502,6 +4502,8 @@
       !cpi->svc.rc_drop_superframe && cpi->oxcf.target_bandwidth == 0) {
     cpi->svc.skip_enhancement_layer = 1;
     vp9_rc_postencode_update_drop_frame(cpi);
+    if (cpi->svc.spatial_layer_id == cpi->svc.number_spatial_layers - 1)
+      vp9_inc_frame_in_layer(cpi);
     cpi->ext_refresh_frame_flags_pending = 0;
     return;
   }