Index: webrtc/video/video_quality_test.cc |
diff --git a/webrtc/video/video_quality_test.cc b/webrtc/video/video_quality_test.cc |
index 6818a5cad6b390d28b6ab3d963c7b5f538458972..7cc71dcf0e114c728359dec6e12b734f49bfef6d 100644 |
--- a/webrtc/video/video_quality_test.cc |
+++ b/webrtc/video/video_quality_test.cc |
@@ -1271,6 +1271,16 @@ void VideoQualityTest::SetupVideo(Transport* send_transport, |
kSendRtxPayloadType; |
video_receive_configs_[i].rtp.transport_cc = params_.call.send_side_bwe; |
video_receive_configs_[i].rtp.remb = !params_.call.send_side_bwe; |
+ // Force fake decoders on non-selected simulcast streams. |
+ if (i != params_.ss.selected_stream) { |
+ VideoReceiveStream::Decoder decoder; |
+ decoder.decoder = new test::FakeDecoder(); |
+ decoder.payload_type = video_send_config_.encoder_settings.payload_type; |
+ decoder.payload_name = video_send_config_.encoder_settings.payload_name; |
+ video_receive_configs_[i].decoders.clear(); |
+ allocated_decoders_.emplace_back(decoder.decoder); |
+ video_receive_configs_[i].decoders.push_back(decoder); |
+ } |
} |
if (params_.video.flexfec) { |