Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(255)

Unified Diff: webrtc/media/engine/webrtcvideoengine.cc

Issue 3000273002: Reverse |rtx_payload_types| map, and rename. (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/media/engine/webrtcvideoengine.cc
diff --git a/webrtc/media/engine/webrtcvideoengine.cc b/webrtc/media/engine/webrtcvideoengine.cc
index 2ff5f08b4d1e514d9cb641873d3a4b0aff74d260..d63c4d7b894b9f045602ccc6bdc43fc66bd30176 100644
--- a/webrtc/media/engine/webrtcvideoengine.cc
+++ b/webrtc/media/engine/webrtcvideoengine.cc
@@ -2220,10 +2220,10 @@ void WebRtcVideoChannel::WebRtcVideoReceiveStream::ConfigureCodecs(
config_.decoders.push_back(decoder);
}
- config_.rtp.rtx_payload_types.clear();
+ config_.rtp.media_pt_by_rtx_pt.clear();
for (const VideoCodecSettings& recv_codec : recv_codecs) {
- config_.rtp.rtx_payload_types[recv_codec.codec.id] =
- recv_codec.rtx_payload_type;
+ config_.rtp.media_pt_by_rtx_pt[recv_codec.rtx_payload_type] =
+ recv_codec.codec.id;
}
config_.rtp.ulpfec = recv_codecs.front().ulpfec;

Powered by Google App Engine
This is Rietveld 408576698