Index: webrtc/video/end_to_end_tests.cc |
diff --git a/webrtc/video/end_to_end_tests.cc b/webrtc/video/end_to_end_tests.cc |
index 4744049a0f2bbd64e210fc8330d65ae275be8fc5..8ace93e78601a4270536cf14135379f709004f46 100644 |
--- a/webrtc/video/end_to_end_tests.cc |
+++ b/webrtc/video/end_to_end_tests.cc |
@@ -1184,7 +1184,9 @@ void EndToEndTest::DecodesRetransmittedFrame(bool enable_rtx, bool enable_red) { |
send_config->rtp.rtx.payload_type = kSendRtxPayloadType; |
(*receive_configs)[0].rtp.rtx_ssrc = kSendRtxSsrcs[0]; |
(*receive_configs)[0] |
- .rtp.rtx_associated_payload_types[kSendRtxPayloadType] = |
+ .rtp.rtx_associated_payload_types[(payload_type_ == kRedPayloadType) |
+ ? kRtxRedPayloadType |
+ : kSendRtxPayloadType] = |
payload_type_; |
} |
// Configure encoding and decoding with VP8, since generic packetization |