OLD | NEW |
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 Loading... |
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 |
OLD | NEW |