diff options
author | pwestin@google.com <pwestin@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-21 21:07:41 +0000 |
---|---|---|
committer | pwestin@google.com <pwestin@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-21 21:07:41 +0000 |
commit | dc6097a75946a1d8ec46cd8fd4773fe5bf19af9f (patch) | |
tree | 0a9264850c9e534a2f626ee4dd6e2e2730cb56ca /media/cast/cast_defines.h | |
parent | 8499a19cfb4e254c5144af70056d41f9295e25ec (diff) | |
download | chromium_src-dc6097a75946a1d8ec46cd8fd4773fe5bf19af9f.zip chromium_src-dc6097a75946a1d8ec46cd8fd4773fe5bf19af9f.tar.gz chromium_src-dc6097a75946a1d8ec46cd8fd4773fe5bf19af9f.tar.bz2 |
Cast: Cleaning up static_casts
Changed to use size_t through out the code to avoid
static_casts. Also added a few DCHECKs in the locations
where we really downcast to a smaller size.
Review URL: https://codereview.chromium.org/26253007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229909 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/cast/cast_defines.h')
-rw-r--r-- | media/cast/cast_defines.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/media/cast/cast_defines.h b/media/cast/cast_defines.h index 5b7919f..0778638 100644 --- a/media/cast/cast_defines.h +++ b/media/cast/cast_defines.h @@ -41,6 +41,11 @@ enum DefaultSettings { const uint16 kRtcpCastAllPacketsLost = 0xffff; +const size_t kMinLengthOfRtcp = 8; + +// Basic RTP header + cast header. +const size_t kMinLengthOfRtp = 12 + 6; + // Each uint16 represents one packet id within a cast frame. typedef std::set<uint16> PacketIdSet; // Each uint8 represents one cast frame. |