Allow suppression of padding check in RtpHeaderParser.

Bug: None
Change-Id: I39574cade2c8c9df539f778fd97cb7a62827e169
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/125521
Reviewed-by: Björn Terelius <terelius@webrtc.org>
Reviewed-by: Åsa Persson <asapersson@webrtc.org>
Commit-Queue: Sebastian Jansson <srte@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#27039}
This commit is contained in:
Sebastian Jansson
2019-03-08 13:45:29 +01:00
committed by Commit Bot
parent 44dd9f29c7
commit 62c7b39c71
3 changed files with 9 additions and 8 deletions

View File

@ -37,7 +37,8 @@ class RtpHeaderParser {
bool RTCP() const;
bool ParseRtcp(RTPHeader* header) const;
bool Parse(RTPHeader* parsedPacket,
const RtpHeaderExtensionMap* ptrExtensionMap = nullptr) const;
const RtpHeaderExtensionMap* ptrExtensionMap = nullptr,
bool header_only = false) const;
private:
void ParseOneByteExtensionHeader(RTPHeader* parsedPacket,