| 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 "webrtc/modules/interface/module_common_types.h" | 15 #include "webrtc/modules/include/module_common_types.h" |
| 16 #include "webrtc/modules/rtp_rtcp/interface/rtp_header_parser.h" | 16 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" |
| 17 | 17 |
| 18 namespace webrtc { | 18 namespace webrtc { |
| 19 namespace test { | 19 namespace test { |
| 20 | 20 |
| 21 Packet::Packet(uint8_t* packet_memory, | 21 Packet::Packet(uint8_t* packet_memory, |
| 22 size_t allocated_bytes, | 22 size_t allocated_bytes, |
| 23 double time_ms, | 23 double time_ms, |
| 24 const RtpHeaderParser& parser) | 24 const RtpHeaderParser& parser) |
| 25 : payload_memory_(packet_memory), | 25 : payload_memory_(packet_memory), |
| 26 payload_(NULL), | 26 payload_(NULL), |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 destination->payload_type_frequency = header_.payload_type_frequency; | 158 destination->payload_type_frequency = header_.payload_type_frequency; |
| 159 memcpy(&destination->arrOfCSRCs, | 159 memcpy(&destination->arrOfCSRCs, |
| 160 &header_.arrOfCSRCs, | 160 &header_.arrOfCSRCs, |
| 161 sizeof(header_.arrOfCSRCs)); | 161 sizeof(header_.arrOfCSRCs)); |
| 162 memcpy( | 162 memcpy( |
| 163 &destination->extension, &header_.extension, sizeof(header_.extension)); | 163 &destination->extension, &header_.extension, sizeof(header_.extension)); |
| 164 } | 164 } |
| 165 | 165 |
| 166 } // namespace test | 166 } // namespace test |
| 167 } // namespace webrtc | 167 } // namespace webrtc |
| OLD | NEW |