| Index: webrtc/modules/video_coding/video_codec_initializer.cc
|
| diff --git a/webrtc/modules/video_coding/video_codec_initializer.cc b/webrtc/modules/video_coding/video_codec_initializer.cc
|
| index 96a00334ab8592b8568d759a716cc420649ef428..39ce8f2dde427610a79f7b1e8d04224c11905109 100644
|
| --- a/webrtc/modules/video_coding/video_codec_initializer.cc
|
| +++ b/webrtc/modules/video_coding/video_codec_initializer.cc
|
| @@ -103,7 +103,7 @@ VideoCodec VideoCodecInitializer::VideoEncoderConfigToVideoCodec(
|
| break;
|
| case VideoEncoderConfig::ContentType::kScreen:
|
| video_codec.mode = kScreensharing;
|
| - if (streams.size() >= 1 &&
|
| + if (!streams.empty() &&
|
| streams[0].temporal_layer_thresholds_bps.size() == 1) {
|
| video_codec.targetBitrate =
|
| streams[0].temporal_layer_thresholds_bps[0] / 1000;
|
|
|