| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 |
| 11 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet.h" | 11 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet.h" |
| 12 | 12 |
| 13 #include <algorithm> |
| 14 |
| 13 #include "webrtc/base/checks.h" | 15 #include "webrtc/base/checks.h" |
| 14 #include "webrtc/base/logging.h" | 16 #include "webrtc/base/logging.h" |
| 15 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 17 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" |
| 16 | 18 |
| 17 using webrtc::RTCPUtility::kBtDlrr; | 19 using webrtc::RTCPUtility::kBtDlrr; |
| 18 using webrtc::RTCPUtility::kBtReceiverReferenceTime; | 20 using webrtc::RTCPUtility::kBtReceiverReferenceTime; |
| 19 using webrtc::RTCPUtility::kBtVoipMetric; | 21 using webrtc::RTCPUtility::kBtVoipMetric; |
| 20 | 22 |
| 21 using webrtc::RTCPUtility::PT_APP; | 23 using webrtc::RTCPUtility::PT_APP; |
| 22 using webrtc::RTCPUtility::PT_IJ; | 24 using webrtc::RTCPUtility::PT_IJ; |
| (...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 979 return length_; | 981 return length_; |
| 980 } | 982 } |
| 981 | 983 |
| 982 void RawPacket::SetLength(size_t length) { | 984 void RawPacket::SetLength(size_t length) { |
| 983 assert(length <= buffer_length_); | 985 assert(length <= buffer_length_); |
| 984 length_ = length; | 986 length_ = length; |
| 985 } | 987 } |
| 986 | 988 |
| 987 } // namespace rtcp | 989 } // namespace rtcp |
| 988 } // namespace webrtc | 990 } // namespace webrtc |
| OLD | NEW |