New accessor function VideoReceiveStream::Config::Rtp::AddRtxBinding

Needed temporarily, to enable landing of
https://codereview.webrtc.org/3000273002/ without breaking downstream
applications.

Bug: webrtc:7135
Change-Id: Ib0783d2e97cc62bb0a6e6fb394a29a5373938054
Reviewed-on: https://chromium-review.googlesource.com/631679
Reviewed-by: Rasmus Brandt <brandtr@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Reviewed-by: Fredrik Solenberg <solenberg@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#19490}
This commit is contained in:
Niels Möller 2017-08-24 10:05:15 +02:00 committed by Commit Bot
parent 36d658d085
commit 23bdb6773e

View File

@ -171,7 +171,11 @@ class VideoReceiveStream {
// Map from video payload type (apt) -> RTX payload type (pt).
// For RTX to be enabled, both an SSRC and this mapping are needed.
std::map<int, int> rtx_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;
}
// RTP header extensions used for the received stream.
std::vector<RtpExtension> extensions;
} rtp;