Use zero octets for rtp packet padding
RFC3550 Section 4 mention "Octets designated as padding have the value zero." Bug: None Change-Id: Ife4c6226143c79ad7d152bc6099ba1d81f5492dd Reviewed-on: https://webrtc-review.googlesource.com/c/103983 Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Björn Terelius <terelius@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25109}
This commit is contained in:
committed by
Commit Bot
parent
3d255309e9
commit
f7fcaf0885
@ -16,6 +16,7 @@
|
||||
#include "modules/rtp_rtcp/include/rtp_header_extension_map.h"
|
||||
#include "modules/rtp_rtcp/include/rtp_rtcp_defines.h"
|
||||
#include "rtc_base/copyonwritebuffer.h"
|
||||
#include "rtc_base/deprecation.h"
|
||||
|
||||
namespace webrtc {
|
||||
class Random;
|
||||
@ -111,7 +112,12 @@ class RtpPacket {
|
||||
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);
|
||||
bool SetPadding(uint8_t size_bytes, Random* random);
|
||||
RTC_DEPRECATED
|
||||
bool SetPadding(uint8_t size_bytes, Random* random) {
|
||||
return SetPadding(size_bytes);
|
||||
}
|
||||
|
||||
bool SetPadding(size_t padding_size);
|
||||
|
||||
private:
|
||||
struct ExtensionInfo {
|
||||
|
||||
Reference in New Issue
Block a user