OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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/fec_test_helper.h" | 11 #include "webrtc/modules/rtp_rtcp/source/fec_test_helper.h" |
12 | 12 |
13 #include <memory> | 13 #include <memory> |
14 #include <utility> | 14 #include <utility> |
15 | 15 |
| 16 #include "webrtc/base/checks.h" |
16 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 17 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
17 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 18 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" |
18 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" | 19 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" |
19 #include "webrtc/rtc_base/checks.h" | |
20 | 20 |
21 namespace webrtc { | 21 namespace webrtc { |
22 namespace test { | 22 namespace test { |
23 namespace fec { | 23 namespace fec { |
24 | 24 |
25 namespace { | 25 namespace { |
26 constexpr uint8_t kFecPayloadType = 96; | 26 constexpr uint8_t kFecPayloadType = 96; |
27 constexpr uint8_t kRedPayloadType = 97; | 27 constexpr uint8_t kRedPayloadType = 97; |
28 constexpr uint8_t kVp8PayloadType = 120; | 28 constexpr uint8_t kVp8PayloadType = 120; |
29 | 29 |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 red_packet->data[1] &= 0x80; // Reset. | 208 red_packet->data[1] &= 0x80; // Reset. |
209 red_packet->data[1] += kRedPayloadType; // Replace. | 209 red_packet->data[1] += kRedPayloadType; // Replace. |
210 | 210 |
211 // Add RED header, f-bit always 0. | 211 // Add RED header, f-bit always 0. |
212 red_packet->data[header_length] = payload_type; | 212 red_packet->data[header_length] = payload_type; |
213 } | 213 } |
214 | 214 |
215 } // namespace fec | 215 } // namespace fec |
216 } // namespace test | 216 } // namespace test |
217 } // namespace webrtc | 217 } // namespace webrtc |
OLD | NEW |