| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 |
| 11 | #include "modules/audio_coding/neteq/packet.h" |
| 12 |
| 13 | namespace webrtc { |
| 14 |
| 15 | Packet::Packet() = default; |
| 16 | Packet::Packet(Packet&& b) = default; |
| 17 |
| 18 | Packet::~Packet() = default; |
| 19 |
| 20 | Packet& Packet::operator=(Packet&& b) = default; |
| 21 |
| 22 | Packet Packet::Clone() const { |
| 23 | RTC_CHECK(!frame); |
| 24 |
| 25 | Packet clone; |
| 26 | clone.timestamp = timestamp; |
| 27 | clone.sequence_number = sequence_number; |
| 28 | clone.payload_type = payload_type; |
| 29 | clone.payload.SetData(payload.data(), payload.size()); |
| 30 | clone.priority = priority; |
| 31 | clone.packet_info = packet_info; |
| 32 |
| 33 | return clone; |
| 34 | } |
| 35 |
| 36 | } // namespace webrtc |
| 37 |