Commit 7ceba7c2 authored by Debargha Mukherjee's avatar Debargha Mukherjee

Fix a spatial svc assert failure

Fixes spatial svc rc assert failure introdcued in:
https://chromium-review.googlesource.com/#/c/312959/1

Change-Id: I6096bfbc484859d71a5fb55e6a3248a31885af61
parent 01a2b40e
...@@ -279,7 +279,7 @@ void vp9_restore_layer_context(VP9_COMP *const cpi) { ...@@ -279,7 +279,7 @@ void vp9_restore_layer_context(VP9_COMP *const cpi) {
// Reset the frames_since_key and frames_to_key counters to their values // 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). // 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->svc.number_spatial_layers > 1 && !is_two_pass_svc(cpi))) {
cpi->rc.frames_since_key = old_frame_since_key; cpi->rc.frames_since_key = old_frame_since_key;
cpi->rc.frames_to_key = old_frame_to_key; cpi->rc.frames_to_key = old_frame_to_key;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment