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:
committed by
Commit Bot
parent
0807d152d5
commit
b2bfba6922
@ -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;
|
||||
|
||||
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user