Declare the RtpHeaderExtensionMap* as const in RtpHeaderParser::Parse.

Bug: None
Change-Id: I38ba9f879dfd5b46f2209f107d20c41529fb645c
Reviewed-on: https://webrtc-review.googlesource.com/59801
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Commit-Queue: Björn Terelius <terelius@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22299}
This commit is contained in:
Bjorn Terelius
2018-03-05 20:52:04 +01:00
committed by Commit Bot
parent 0807d152d5
commit b2bfba6922
2 changed files with 4 additions and 3 deletions

View File

@ -159,8 +159,9 @@ bool RtpHeaderParser::ParseRtcp(RTPHeader* header) const {
return true;
}
bool RtpHeaderParser::Parse(RTPHeader* header,
RtpHeaderExtensionMap* ptrExtensionMap) const {
bool RtpHeaderParser::Parse(
RTPHeader* header,
const RtpHeaderExtensionMap* ptrExtensionMap) const {
const ptrdiff_t length = _ptrRTPDataEnd - _ptrRTPDataBegin;
if (length < kRtpMinParseLength) {
return false;

View File

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