]> granicus.if.org Git - libvpx/commitdiff
vp9-svc: Remove the memset on the svc fb_idx.
authorMarco Paniconi <marpan@google.com>
Fri, 27 Apr 2018 22:35:31 +0000 (15:35 -0700)
committerMarco Paniconi <marpan@google.com>
Fri, 27 Apr 2018 22:47:44 +0000 (15:47 -0700)
This fixes failures on the datarate tests for
temporal layers with frame dropping.

The memset was only added to better handle frame drops
with the GET_SVC_REF_FRAME_CONFIG control from 43c58df3.
So ok to remove it for now.

Change-Id: I256d9ac4278b93fe6f39b94cce2e458a1a5eff69

vp9/encoder/vp9_svc_layercontext.c

index c8196b718dd6cbf4f15ec8ec761c8a124ed8abec..1f4351c16a0fa6c61255a00318c955956e25a95b 100644 (file)
@@ -666,9 +666,10 @@ int vp9_one_pass_cbr_svc_start_layer(VP9_COMP *const cpi) {
   // Reset the drop flags for all spatial layers, on the base layer.
   if (cpi->svc.spatial_layer_id == 0) {
     vp9_zero(cpi->svc.drop_spatial_layer);
-    memset(&cpi->svc.lst_fb_idx, -1, sizeof(cpi->svc.lst_fb_idx));
-    memset(&cpi->svc.gld_fb_idx, -1, sizeof(cpi->svc.lst_fb_idx));
-    memset(&cpi->svc.alt_fb_idx, -1, sizeof(cpi->svc.lst_fb_idx));
+    // TODO(jianj/marpan): Investigate why setting cpi->svc.lst/gld/alt_fb_idx
+    // causes an issue with frame dropping and temporal layers, when the frame
+    // flags are passed via the encode call. Issue is that we're resetting
+    // ext_refresh_frame_flags_pending to 0 on frame drops.
     vp9_zero(cpi->svc.update_last);
     vp9_zero(cpi->svc.update_golden);
     vp9_zero(cpi->svc.update_altref);