Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: webrtc/media/base/rtputils.h

Issue 2890263003: Move RTP/RTCP demuxing logic from BaseChannel to RtpTransport. (Closed)
Patch Set: Move more demuxing logic from BaseChannel to RtpTransport. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/media/base/rtputils.cc » ('j') | webrtc/pc/channel.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/base/rtputils.h
diff --git a/webrtc/media/base/rtputils.h b/webrtc/media/base/rtputils.h
index 1a710576117e72debbdfb925ec3a225d8afcd9ed..03c21276636c0820c4664c9f3e9d15c5aab5e271 100644
--- a/webrtc/media/base/rtputils.h
+++ b/webrtc/media/base/rtputils.h
@@ -58,6 +58,10 @@ bool IsRtpPacket(const void* data, size_t len);
// True if |payload type| is 0-127.
bool IsValidRtpPayloadType(int payload_type);
+bool IsValidRtpRtcpPacketSize(bool rtcp, size_t size);
+
+const char* PacketType(bool rtcp);
Taylor Brandstetter 2017/05/25 16:14:25 Can you add a comment above these declarations? An
Zach Stein 2017/05/30 21:50:55 Done.
+
// Verifies that a packet has a valid RTP header.
bool ValidateRtpHeader(const uint8_t* rtp,
size_t length,
« no previous file with comments | « no previous file | webrtc/media/base/rtputils.cc » ('j') | webrtc/pc/channel.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698