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

Side by Side Diff: webrtc/video/audio_receive_stream.cc

Issue 1188823007: Only use paced packets for estimating bitrate probes. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Added unittest Created 5 years, 6 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 if (!rtp_header_parser_->Parse(packet, length, &header)) { 76 if (!rtp_header_parser_->Parse(packet, length, &header)) {
77 return false; 77 return false;
78 } 78 }
79 79
80 // Only forward if the parsed header has absolute sender time. RTP time stamps 80 // Only forward if the parsed header has absolute sender time. RTP time stamps
81 // may have different rates for audio and video and shouldn't be mixed. 81 // may have different rates for audio and video and shouldn't be mixed.
82 if (header.extension.hasAbsoluteSendTime) { 82 if (header.extension.hasAbsoluteSendTime) {
83 int64_t arrival_time_ms = TickTime::MillisecondTimestamp(); 83 int64_t arrival_time_ms = TickTime::MillisecondTimestamp();
84 size_t payload_size = length - header.headerLength; 84 size_t payload_size = length - header.headerLength;
85 remote_bitrate_estimator_->IncomingPacket(arrival_time_ms, payload_size, 85 remote_bitrate_estimator_->IncomingPacket(arrival_time_ms, payload_size,
86 header); 86 header, false);
87 } 87 }
88 return true; 88 return true;
89 } 89 }
90 } // namespace internal 90 } // namespace internal
91 } // namespace webrtc 91 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/remote_bitrate_estimator/tools/bwe_rtp_play.cc ('k') | webrtc/video/rampup_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698