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

Unified Diff: webrtc/video/vie_encoder.cc

Issue 1642863003: Replace const-reference with pointer in SendData. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « webrtc/video/vie_encoder.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/vie_encoder.cc
diff --git a/webrtc/video/vie_encoder.cc b/webrtc/video/vie_encoder.cc
index 5e33c74c9f872f53db8547ba76a23a55e7376022..8adf4d0671dfb42e27d59206bd072c2bec687051 100644
--- a/webrtc/video/vie_encoder.cc
+++ b/webrtc/video/vie_encoder.cc
@@ -447,11 +447,10 @@ void ViEEncoder::OnSetRates(uint32_t bitrate_bps, int framerate) {
stats_proxy_->OnSetRates(bitrate_bps, framerate);
}
-int32_t ViEEncoder::SendData(
- const uint8_t payload_type,
- const EncodedImage& encoded_image,
- const webrtc::RTPFragmentationHeader& fragmentation_header,
- const RTPVideoHeader* rtp_video_hdr) {
+int32_t ViEEncoder::SendData(const uint8_t payload_type,
+ const EncodedImage& encoded_image,
+ const RTPFragmentationHeader* fragmentation_header,
+ const RTPVideoHeader* rtp_video_hdr) {
RTC_DCHECK(send_payload_router_ != NULL);
{
@@ -465,7 +464,7 @@ int32_t ViEEncoder::SendData(
return send_payload_router_->RoutePayload(
encoded_image._frameType, payload_type, encoded_image._timeStamp,
encoded_image.capture_time_ms_, encoded_image._buffer,
- encoded_image._length, &fragmentation_header, rtp_video_hdr)
+ encoded_image._length, fragmentation_header, rtp_video_hdr)
? 0
: -1;
}
« no previous file with comments | « webrtc/video/vie_encoder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698