OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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/common_header.h" | 11 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/common_header.h" |
12 | 12 |
| 13 #include "webrtc/base/logging.h" |
13 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 14 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" |
14 #include "webrtc/rtc_base/logging.h" | |
15 | 15 |
16 namespace webrtc { | 16 namespace webrtc { |
17 namespace rtcp { | 17 namespace rtcp { |
18 // 0 1 1 2 3 | 18 // 0 1 1 2 3 |
19 // 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 | 19 // 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 |
20 // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 20 // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
21 // 0 |V=2|P| C/F | | 21 // 0 |V=2|P| C/F | |
22 // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 22 // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
23 // 1 | Packet Type | | 23 // 1 | Packet Type | |
24 // ----------------+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 24 // ----------------+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 << padding_size_ << ") for a packet payload size of " | 77 << padding_size_ << ") for a packet payload size of " |
78 << payload_size_ << " bytes."; | 78 << payload_size_ << " bytes."; |
79 return false; | 79 return false; |
80 } | 80 } |
81 payload_size_ -= padding_size_; | 81 payload_size_ -= padding_size_; |
82 } | 82 } |
83 return true; | 83 return true; |
84 } | 84 } |
85 } // namespace rtcp | 85 } // namespace rtcp |
86 } // namespace webrtc | 86 } // namespace webrtc |
OLD | NEW |