aboutsummaryrefslogtreecommitdiff
path: root/webrtc/modules/rtp_rtcp/source/rtcp_packet.h
diff options
context:
space:
mode:
authorsprang <sprang@webrtc.org>2015-09-14 12:50:39 -0700
committerCommit bot <commit-bot@chromium.org>2015-09-14 19:50:49 +0000
commit73a93e82579d6eeb3a1c4a63ef4b64c3c4d9bb18 (patch)
treef30bff1ffcff7b66d8d3f2d6095d40055c96f703 /webrtc/modules/rtp_rtcp/source/rtcp_packet.h
parent1cb121dea478a4bb4f88e76cf92719e2853543cf (diff)
downloadwebrtc-73a93e82579d6eeb3a1c4a63ef4b64c3c4d9bb18.tar.gz
Add a ParseHeader method to RtcpPacket, for parsing common RTCP header.
Also refactor TransportFeedback to use this. BUG= Review URL: https://codereview.webrtc.org/1307663004 Cr-Commit-Position: refs/heads/master@{#9935}
Diffstat (limited to 'webrtc/modules/rtp_rtcp/source/rtcp_packet.h')
-rw-r--r--webrtc/modules/rtp_rtcp/source/rtcp_packet.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/webrtc/modules/rtp_rtcp/source/rtcp_packet.h b/webrtc/modules/rtp_rtcp/source/rtcp_packet.h
index c5432de9d6..cfbe8cee92 100644
--- a/webrtc/modules/rtp_rtcp/source/rtcp_packet.h
+++ b/webrtc/modules/rtp_rtcp/source/rtcp_packet.h
@@ -99,11 +99,11 @@ class RtcpPacket {
size_t max_length,
PacketReadyCallback* callback) const = 0;
- void CreateHeader(uint8_t count_or_format,
- uint8_t packet_type,
- size_t length,
- uint8_t* buffer,
- size_t* pos) const;
+ static void CreateHeader(uint8_t count_or_format,
+ uint8_t packet_type,
+ size_t block_length, // Size in 32bit words - 1.
+ uint8_t* buffer,
+ size_t* pos);
bool OnBufferFull(uint8_t* packet,
size_t* index,