Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: webrtc/modules/audio_coding/neteq/packet.h

Issue 2289093003: NetEq: Changed Packet::payload to be an rtc::Buffer (Closed)
Patch Set: Changed Buffer constructor calls to SetData or SetSize Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_coding/neteq/packet.h
diff --git a/webrtc/modules/audio_coding/neteq/packet.h b/webrtc/modules/audio_coding/neteq/packet.h
index d6f64c7e088aa9ae51f2877de7b1f604b3cb4797..273c2d21c03a3666fee77e00d1b8201b7a64075f 100644
--- a/webrtc/modules/audio_coding/neteq/packet.h
+++ b/webrtc/modules/audio_coding/neteq/packet.h
@@ -14,6 +14,7 @@
#include <list>
#include <memory>
+#include "webrtc/base/buffer.h"
#include "webrtc/modules/audio_coding/neteq/tick_timer.h"
#include "webrtc/modules/include/module_common_types.h"
#include "webrtc/typedefs.h"
@@ -24,8 +25,7 @@ namespace webrtc {
struct Packet {
RTPHeader header;
// Datagram excluding RTP header and header extension.
- uint8_t* payload = nullptr;
- size_t payload_length = 0;
+ rtc::Buffer payload;
bool primary = true; // Primary, i.e., not redundant payload.
bool sync_packet = false;
std::unique_ptr<TickTimer::Stopwatch> waiting_time;

Powered by Google App Engine
This is Rietveld 408576698