diff options
-rw-r--r-- | vp9/encoder/vp9_svc_layercontext.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/vp9/encoder/vp9_svc_layercontext.c b/vp9/encoder/vp9_svc_layercontext.c index 930cde66f..84e47c6be 100644 --- a/vp9/encoder/vp9_svc_layercontext.c +++ b/vp9/encoder/vp9_svc_layercontext.c @@ -708,8 +708,13 @@ int vp9_one_pass_cbr_svc_start_layer(VP9_COMP *const cpi) { vp9_zero(cpi->svc.drop_spatial_layer); // 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. + // flags are passed via the encode call (bypass mode). Issue is that we're + // resetting ext_refresh_frame_flags_pending to 0 on frame drops. + if (cpi->svc.temporal_layering_mode != VP9E_TEMPORAL_LAYERING_MODE_BYPASS) { + 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)); + } vp9_zero(cpi->svc.update_last); vp9_zero(cpi->svc.update_golden); vp9_zero(cpi->svc.update_altref); |