Create and initialize encoders only for active streams
Bug: webrtc:12407 Change-Id: Id30fcb84dcbfffa30c7a34b15564ab5049cec96c Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/204066 Commit-Queue: Sergey Silkin <ssilkin@webrtc.org> Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Cr-Commit-Position: refs/heads/master@{#33141}
This commit is contained in:
committed by
Commit Bot
parent
312ea0e144
commit
0e3cb9fb20
@ -49,7 +49,8 @@ TEST(EncoderSimulcastProxy, ChoosesCorrectImplementation) {
|
||||
2000,
|
||||
1000,
|
||||
1000,
|
||||
56};
|
||||
56,
|
||||
true};
|
||||
codec_settings.simulcastStream[1] = {test::kTestWidth,
|
||||
test::kTestHeight,
|
||||
test::kTestFrameRate,
|
||||
@ -57,7 +58,8 @@ TEST(EncoderSimulcastProxy, ChoosesCorrectImplementation) {
|
||||
3000,
|
||||
1000,
|
||||
1000,
|
||||
56};
|
||||
56,
|
||||
true};
|
||||
codec_settings.simulcastStream[2] = {test::kTestWidth,
|
||||
test::kTestHeight,
|
||||
test::kTestFrameRate,
|
||||
@ -65,7 +67,8 @@ TEST(EncoderSimulcastProxy, ChoosesCorrectImplementation) {
|
||||
5000,
|
||||
1000,
|
||||
1000,
|
||||
56};
|
||||
56,
|
||||
true};
|
||||
codec_settings.numberOfSimulcastStreams = 3;
|
||||
|
||||
auto mock_encoder = std::make_unique<NiceMock<MockVideoEncoder>>();
|
||||
|
||||
Reference in New Issue
Block a user