diff options
author | Marco <marpan@google.com> | 2015-11-18 14:29:25 -0800 |
---|---|---|
committer | Marco <marpan@google.com> | 2015-11-18 14:31:37 -0800 |
commit | eed5494fc66478ea90c1343718bb74c8394c7a3b (patch) | |
tree | 7cd011e43fb6f6109a434f902cfa4621ae3040f1 /vp9 | |
parent | 85aea16f176a83598586c72134df373069fe22ba (diff) | |
download | libvpx-eed5494fc66478ea90c1343718bb74c8394c7a3b.tar libvpx-eed5494fc66478ea90c1343718bb74c8394c7a3b.tar.gz libvpx-eed5494fc66478ea90c1343718bb74c8394c7a3b.tar.bz2 libvpx-eed5494fc66478ea90c1343718bb74c8394c7a3b.zip |
vp9-svc: Fix to key frame counter for spatial layers.
Existing condition only applied to temporal layers.
Change-Id: Icef20a59d0afc61d4e14dea01aff4786fa9e41ae
Diffstat (limited to 'vp9')
-rw-r--r-- | vp9/encoder/vp9_svc_layercontext.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vp9/encoder/vp9_svc_layercontext.c b/vp9/encoder/vp9_svc_layercontext.c index 1dfc45cf6..13da155c7 100644 --- a/vp9/encoder/vp9_svc_layercontext.c +++ b/vp9/encoder/vp9_svc_layercontext.c @@ -278,7 +278,8 @@ void vp9_restore_layer_context(VP9_COMP *const cpi) { cpi->alt_ref_source = lc->alt_ref_source; // Reset the frames_since_key and frames_to_key counters to their values // before the layer restore. Keep these defined for the stream (not layer). - if (cpi->svc.number_temporal_layers > 1) { + if (cpi->svc.number_temporal_layers > 1 || + cpi->svc.number_spatial_layers > 1) { cpi->rc.frames_since_key = old_frame_since_key; cpi->rc.frames_to_key = old_frame_to_key; } |