summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/rtp_utils.cc
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-07 23:07:27 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-07 23:07:27 +0000
commitaa20e0622a945f94958daa1940385c29779d09e4 (patch)
tree79ba5e11afb6d6edc5a9e4edef95cca4f86467de /remoting/protocol/rtp_utils.cc
parent111ca63cacf4cedb65be41fd4cabfa5ad7bb6b86 (diff)
downloadchromium_src-aa20e0622a945f94958daa1940385c29779d09e4.zip
chromium_src-aa20e0622a945f94958daa1940385c29779d09e4.tar.gz
chromium_src-aa20e0622a945f94958daa1940385c29779d09e4.tar.bz2
Move more code from headers to implementation.
BUG=none TEST=compiles Review URL: http://codereview.chromium.org/5624002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68534 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/rtp_utils.cc')
-rw-r--r--remoting/protocol/rtp_utils.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/remoting/protocol/rtp_utils.cc b/remoting/protocol/rtp_utils.cc
index 3a6a9340..db04503 100644
--- a/remoting/protocol/rtp_utils.cc
+++ b/remoting/protocol/rtp_utils.cc
@@ -27,6 +27,28 @@ const int kRtcpReceiverReportTotalSize =
const int kRtcpReceiverReportPacketType = 201;
} // namespace
+RtpHeader::RtpHeader()
+ : padding(false),
+ extension(false),
+ sources(0),
+ marker(false),
+ payload_type(0),
+ sequence_number(0),
+ timestamp(0),
+ sync_source_id(0) {
+}
+
+RtcpReceiverReport::RtcpReceiverReport()
+ : receiver_ssrc(0),
+ sender_ssrc(0),
+ loss_fraction(0),
+ total_lost_packets(0),
+ last_sequence_number(0),
+ jitter(0),
+ last_sender_report_timestamp(0),
+ last_sender_report_delay(0) {
+}
+
static inline uint8 ExtractBits(uint8 byte, int bits_count, int shift) {
return (byte >> shift) & ((1 << bits_count) - 1);
}