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

Unified Diff: webrtc/audio/audio_receive_stream.cc

Issue 2659563002: Always call RemoteBitrateEstimator::IncomingPacket from Call. (Closed)
Patch Set: Rebased. Created 3 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 | « no previous file | webrtc/audio/audio_receive_stream_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/audio/audio_receive_stream.cc
diff --git a/webrtc/audio/audio_receive_stream.cc b/webrtc/audio/audio_receive_stream.cc
index 1f24b2ca2726c099cef35f215457d08425e6e19a..17da10f35789eb4c864ca6f696d3cfd09da91e9e 100644
--- a/webrtc/audio/audio_receive_stream.cc
+++ b/webrtc/audio/audio_receive_stream.cc
@@ -330,19 +330,6 @@ bool AudioReceiveStream::DeliverRtp(const uint8_t* packet,
return false;
}
- // Only forward if the parsed header has one of the headers necessary for
- // bandwidth estimation. RTP timestamps has different rates for audio and
- // video and shouldn't be mixed.
- if (config_.rtp.transport_cc &&
- header.extension.hasTransportSequenceNumber) {
- int64_t arrival_time_ms = rtc::TimeMillis();
- if (packet_time.timestamp >= 0)
- arrival_time_ms = (packet_time.timestamp + 500) / 1000;
- size_t payload_size = length - header.headerLength;
- remote_bitrate_estimator_->IncomingPacket(arrival_time_ms, payload_size,
- header);
- }
-
return channel_proxy_->ReceivedRTPPacket(packet, length, packet_time);
}
« no previous file with comments | « no previous file | webrtc/audio/audio_receive_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698