]> granicus.if.org Git - libvpx/commitdiff
vp9-svc: Fix to update layer counters when layer is skipped.
authorMarco Paniconi <marpan@google.com>
Wed, 14 Mar 2018 18:49:25 +0000 (11:49 -0700)
committerMarco Paniconi <marpan@google.com>
Wed, 14 Mar 2018 18:51:01 +0000 (11:51 -0700)
Update layer counters when layer is skipped,
for any spatial layer.

Change-Id: Ie37c4a16ccafdef3390b651dec473beb5d926896

vp9/encoder/vp9_encoder.c

index c4989857997178e7fd21cf6961b21c9624a62394..98cba3c14758e4c5848308dc5af3c90727e61582 100644 (file)
@@ -4502,8 +4502,7 @@ static void encode_frame_to_data_rate(VP9_COMP *cpi, size_t *size,
       !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;
   }