Index: webrtc/video/loopback.cc |
diff --git a/webrtc/video/loopback.cc b/webrtc/video/loopback.cc |
index 7e5ca078c1e4b5b5bb946add54a0f77a626df833..ef382de33c145ad40338adffd2f811fb79ec4a5e 100644 |
--- a/webrtc/video/loopback.cc |
+++ b/webrtc/video/loopback.cc |
@@ -158,6 +158,10 @@ VideoEncoderConfig Loopback::CreateEncoderConfig() { |
static_cast<int>(config_.max_bitrate_kbps) * 1000; |
stream->max_framerate = config_.fps; |
stream->max_qp = 56; |
+ if (config_.num_temporal_layers != 0) { |
+ stream->temporal_layer_thresholds_bps.resize(config_.num_temporal_layers - |
+ 1); |
+ } |
return encoder_config; |
} |