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

@ -1310,7 +1310,7 @@ void ParsedRtcEventLog::StoreParsedLegacyEvent(const rtclog::Event& event) {
RTPHeader parsed_header;
if (extension_map != nullptr) {
rtp_parser.Parse(&parsed_header, extension_map);
rtp_parser.Parse(&parsed_header, extension_map, true);
} else {
// Use the default extension map.
// TODO(terelius): This should be removed. GetRtpHeader will return the
@ -1318,7 +1318,7 @@ void ParsedRtcEventLog::StoreParsedLegacyEvent(const rtclog::Event& event) {
// TODO(ivoc): Once configuration of audio streams is stored in the
// event log, this can be removed.
// Tracking bug: webrtc:6399
rtp_parser.Parse(&parsed_header, &default_extension_map_);
rtp_parser.Parse(&parsed_header, &default_extension_map_, true);
}
// Since we give the parser only a header, there is no way for it to know