| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 for (const auto& ext : config.rtp.extensions) { | 54 for (const auto& ext : config.rtp.extensions) { |
| 55 // One-byte-extension local identifiers are in the range 1-14 inclusive. | 55 // One-byte-extension local identifiers are in the range 1-14 inclusive. |
| 56 DCHECK_GE(ext.id, 1); | 56 DCHECK_GE(ext.id, 1); |
| 57 DCHECK_LE(ext.id, 14); | 57 DCHECK_LE(ext.id, 14); |
| 58 if (ext.name == RtpExtension::kAudioLevel) { | 58 if (ext.name == RtpExtension::kAudioLevel) { |
| 59 CHECK(rtp_header_parser_->RegisterRtpHeaderExtension( | 59 CHECK(rtp_header_parser_->RegisterRtpHeaderExtension( |
| 60 kRtpExtensionAudioLevel, ext.id)); | 60 kRtpExtensionAudioLevel, ext.id)); |
| 61 } else if (ext.name == RtpExtension::kAbsSendTime) { | 61 } else if (ext.name == RtpExtension::kAbsSendTime) { |
| 62 CHECK(rtp_header_parser_->RegisterRtpHeaderExtension( | 62 CHECK(rtp_header_parser_->RegisterRtpHeaderExtension( |
| 63 kRtpExtensionAbsoluteSendTime, ext.id)); | 63 kRtpExtensionAbsoluteSendTime, ext.id)); |
| 64 } else if (ext.name == RtpExtension::kTransportSequenceNumber) { |
| 65 CHECK(rtp_header_parser_->RegisterRtpHeaderExtension( |
| 66 kRtpExtensionTransportSequenceNumber, ext.id)); |
| 64 } else { | 67 } else { |
| 65 RTC_NOTREACHED() << "Unsupported RTP extension."; | 68 RTC_NOTREACHED() << "Unsupported RTP extension."; |
| 66 } | 69 } |
| 67 } | 70 } |
| 68 } | 71 } |
| 69 | 72 |
| 70 webrtc::AudioReceiveStream::Stats AudioReceiveStream::GetStats() const { | 73 webrtc::AudioReceiveStream::Stats AudioReceiveStream::GetStats() const { |
| 71 return webrtc::AudioReceiveStream::Stats(); | 74 return webrtc::AudioReceiveStream::Stats(); |
| 72 } | 75 } |
| 73 | 76 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 95 if (header.extension.hasAbsoluteSendTime) { | 98 if (header.extension.hasAbsoluteSendTime) { |
| 96 int64_t arrival_time_ms = TickTime::MillisecondTimestamp(); | 99 int64_t arrival_time_ms = TickTime::MillisecondTimestamp(); |
| 97 size_t payload_size = length - header.headerLength; | 100 size_t payload_size = length - header.headerLength; |
| 98 remote_bitrate_estimator_->IncomingPacket(arrival_time_ms, payload_size, | 101 remote_bitrate_estimator_->IncomingPacket(arrival_time_ms, payload_size, |
| 99 header, false); | 102 header, false); |
| 100 } | 103 } |
| 101 return true; | 104 return true; |
| 102 } | 105 } |
| 103 } // namespace internal | 106 } // namespace internal |
| 104 } // namespace webrtc | 107 } // namespace webrtc |
| OLD | NEW |