Bug 1620660 - Use streamCount consistently in CreateEncoderStreams; r=ng

Differential Revision: https://phabricator.services.mozilla.com/D65799

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Dan Minor 2020-03-10 19:45:13 +00:00
Родитель 60288ef727
Коммит d527b76eb7
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -215,7 +215,7 @@ std::vector<webrtc::VideoStream> VideoStreamFactory::CreateEncoderStreams(
// leave vector temporal_layer_thresholds_bps empty for non-simulcast
video_stream.temporal_layer_thresholds_bps.clear();
if (config.number_of_streams > 1) {
if (streamCount > 1) {
// XXX Note: in simulcast.cc in upstream code, the array value is
// 3(-1) for all streams, though it's in an array, except for screencasts,
// which use 1 (i.e 2 layers).