Reverse |rtx_payload_types| map, and rename.
New name is |rtx_associated_payload_types|.
BUG=webrtc:7135
Review-Url: https://codereview.webrtc.org/3000273002
Cr-Commit-Position: refs/heads/master@{#19514}
diff --git a/webrtc/call/video_receive_stream.h b/webrtc/call/video_receive_stream.h
index bd4b997..18e904d 100644
--- a/webrtc/call/video_receive_stream.h
+++ b/webrtc/call/video_receive_stream.h
@@ -168,14 +168,15 @@
// Set if the stream is protected using FlexFEC.
bool protected_by_flexfec = false;
- // Map from video payload type (apt) -> RTX payload type (pt).
+ // Map from rtx payload type -> media payload type.
// For RTX to be enabled, both an SSRC and this mapping are needed.
- std::map<int, int> rtx_payload_types;
+ std::map<int, int> rtx_associated_payload_types;
// TODO(nisse): This is a temporary accessor function to enable
// reversing and renaming of the rtx_payload_types mapping.
void AddRtxBinding(int rtx_payload_type, int media_payload_type) {
- rtx_payload_types[media_payload_type] = rtx_payload_type;
+ rtx_associated_payload_types[rtx_payload_type] = media_payload_type;
}
+
// RTP header extensions used for the received stream.
std::vector<RtpExtension> extensions;
} rtp;