shithub: libvpx

Download patch

ref: f50ad31ec1b4b98f4faab1ca56f33e1e66aa17da
parent: 6f9163db9518fb7af6d35960c6f365c92a749807
author: Marco Paniconi <[email protected]>
date: Wed Mar 14 07:49:25 EDT 2018

vp9-svc: Fix to update layer counters when layer is skipped.

Update layer counters when layer is skipped,
for any spatial layer.

Change-Id: Ie37c4a16ccafdef3390b651dec473beb5d926896

--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -4502,8 +4502,7 @@
       !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);
+    vp9_inc_frame_in_layer(cpi);
     cpi->ext_refresh_frame_flags_pending = 0;
     return;
   }