Index: webrtc/modules/rtp_rtcp/source/rtp_packet.h |
diff --git a/webrtc/modules/rtp_rtcp/source/rtp_packet.h b/webrtc/modules/rtp_rtcp/source/rtp_packet.h |
index 3c02125e082bfbce2921bd6057f9f4bcc74d9bdc..75c73cfbcc92ccb07f7a1331a6e6b3345f79d432 100644 |
--- a/webrtc/modules/rtp_rtcp/source/rtp_packet.h |
+++ b/webrtc/modules/rtp_rtcp/source/rtp_packet.h |
@@ -96,8 +96,9 @@ class Packet { |
bool ReserveExtension(); |
// Reserve size_bytes for payload. Returns nullptr on failure. |
+ uint8_t* SetPayloadSize(size_t size_bytes); |
+ // Same as SetPayloadSize but doesn't guarantee to keep current payload. |
uint8_t* AllocatePayload(size_t size_bytes); |
- void SetPayloadSize(size_t size_bytes); |
bool SetPadding(uint8_t size_bytes, Random* random); |
protected: |