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/audio_coding/neteq/tools/packet.h" | 11 #include "webrtc/modules/audio_coding/neteq/tools/packet.h" |
12 | 12 |
13 #include <string.h> | 13 #include <string.h> |
14 | 14 |
15 #include <memory> | 15 #include <memory> |
16 | 16 |
17 #include "webrtc/base/checks.h" | |
18 #include "webrtc/modules/include/module_common_types.h" | 17 #include "webrtc/modules/include/module_common_types.h" |
19 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" | 18 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" |
| 19 #include "webrtc/rtc_base/checks.h" |
20 | 20 |
21 namespace webrtc { | 21 namespace webrtc { |
22 namespace test { | 22 namespace test { |
23 | 23 |
24 Packet::Packet(uint8_t* packet_memory, | 24 Packet::Packet(uint8_t* packet_memory, |
25 size_t allocated_bytes, | 25 size_t allocated_bytes, |
26 double time_ms, | 26 double time_ms, |
27 const RtpHeaderParser& parser) | 27 const RtpHeaderParser& parser) |
28 : payload_memory_(packet_memory), | 28 : payload_memory_(packet_memory), |
29 payload_(NULL), | 29 payload_(NULL), |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 destination->payload_type_frequency = header_.payload_type_frequency; | 161 destination->payload_type_frequency = header_.payload_type_frequency; |
162 memcpy(&destination->arrOfCSRCs, | 162 memcpy(&destination->arrOfCSRCs, |
163 &header_.arrOfCSRCs, | 163 &header_.arrOfCSRCs, |
164 sizeof(header_.arrOfCSRCs)); | 164 sizeof(header_.arrOfCSRCs)); |
165 memcpy( | 165 memcpy( |
166 &destination->extension, &header_.extension, sizeof(header_.extension)); | 166 &destination->extension, &header_.extension, sizeof(header_.extension)); |
167 } | 167 } |
168 | 168 |
169 } // namespace test | 169 } // namespace test |
170 } // namespace webrtc | 170 } // namespace webrtc |
OLD | NEW |