Index: webrtc/modules/rtp_rtcp/source/producer_fec.cc |
diff --git a/webrtc/modules/rtp_rtcp/source/producer_fec.cc b/webrtc/modules/rtp_rtcp/source/producer_fec.cc |
index b84150ec8a576db6d101735671498c3f464e1102..cb794218faa4e7ad782bd1da3d0da7de9ec73706 100644 |
--- a/webrtc/modules/rtp_rtcp/source/producer_fec.cc |
+++ b/webrtc/modules/rtp_rtcp/source/producer_fec.cc |
@@ -123,13 +123,13 @@ std::unique_ptr<RedPacket> ProducerFec::BuildRedPacket( |
return red_packet; |
} |
-void ProducerFec::SetFecParameters(const FecProtectionParams* params) { |
- RTC_DCHECK_GE(params->fec_rate, 0); |
- RTC_DCHECK_LE(params->fec_rate, 255); |
+void ProducerFec::SetFecParameters(const FecProtectionParams& params) { |
+ RTC_DCHECK_GE(params.fec_rate, 0); |
+ RTC_DCHECK_LE(params.fec_rate, 255); |
// Store the new params and apply them for the next set of FEC packets being |
// produced. |
- new_params_ = *params; |
- if (params->fec_rate > kHighProtectionThreshold) { |
+ new_params_ = params; |
+ if (params.fec_rate > kHighProtectionThreshold) { |
min_num_media_packets_ = kMinMediaPackets; |
} else { |
min_num_media_packets_ = 1; |