Index: webrtc/modules/audio_coding/neteq/packet.cc |
diff --git a/webrtc/modules/audio_coding/neteq/packet.cc b/webrtc/modules/audio_coding/neteq/packet.cc |
index 8a19fe4d5923d5e22a5b485600c6da0c5f3856ba..f25f81a241bc8a7b669fd77868ccc27fa017a00f 100644 |
--- a/webrtc/modules/audio_coding/neteq/packet.cc |
+++ b/webrtc/modules/audio_coding/neteq/packet.cc |
@@ -13,7 +13,23 @@ |
namespace webrtc { |
Packet::Packet() = default; |
+Packet::Packet(Packet&& b) = default; |
Packet::~Packet() = default; |
+Packet& Packet::operator=(Packet&& b) = default; |
+ |
+Packet Packet::Clone() const { |
+ RTC_CHECK(!frame); |
+ |
+ Packet clone; |
+ clone.timestamp = timestamp; |
+ clone.sequence_number = sequence_number; |
+ clone.payload_type = payload_type; |
+ clone.payload.SetData(payload.data(), payload.size()); |
+ clone.priority = priority; |
+ |
+ return clone; |
+} |
+ |
} // namespace webrtc |