diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-24 04:20:48 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-24 04:20:48 +0000 |
commit | 8e88605290262afe6291f997abc0d5ff9197c595 (patch) | |
tree | a358863f248c784aef39bd0b7b3e47295384f5d2 /remoting/protocol/rtp_utils.h | |
parent | 629a837754b10e7a08a7f85838d3271f96e68f2f (diff) | |
download | chromium_src-8e88605290262afe6291f997abc0d5ff9197c595.zip chromium_src-8e88605290262afe6291f997abc0d5ff9197c595.tar.gz chromium_src-8e88605290262afe6291f997abc0d5ff9197c595.tar.bz2 |
Refactoring in RTP reader code: sequence number wrapping logic moved to
RtpReader
BUG=None
TEST=Unittests
Review URL: http://codereview.chromium.org/5110008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67212 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/rtp_utils.h')
-rw-r--r-- | remoting/protocol/rtp_utils.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/remoting/protocol/rtp_utils.h b/remoting/protocol/rtp_utils.h index 9049a22..1c2fa4e 100644 --- a/remoting/protocol/rtp_utils.h +++ b/remoting/protocol/rtp_utils.h @@ -11,6 +11,17 @@ namespace remoting { namespace protocol { struct RtpHeader { + RtpHeader() + : padding(false), + extension(false), + sources(0), + marker(false), + payload_type(0), + sequence_number(0), + timestamp(0), + sync_source_id(0) { + } + // RTP version is always set to 2. // version = 2 bool padding; @@ -35,6 +46,13 @@ struct Vp8Descriptor { LAST_FRAGMENT = 3, }; + Vp8Descriptor() + : non_reference_frame(false), + fragmentation_info(NOT_FRAGMENTED), + frame_beginning(false), + picture_id(kuint32max) { + } + bool non_reference_frame; uint8 fragmentation_info; bool frame_beginning; |