Fix clang errors in non-GYP_DEFINES=clang=1 build
BUG=1623 R=stefan@webrtc.org, tina.legrand@webrtc.org, tommi@webrtc.org Review URL: https://webrtc-codereview.appspot.com/1368004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3968 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -18,19 +18,17 @@
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
enum {RTP_ONE_BYTE_HEADER_EXTENSION = 0xbede};
|
||||
const uint16_t kRtpOneByteHeaderExtensionId = 0xBEDE;
|
||||
|
||||
enum {
|
||||
RTP_ONE_BYTE_HEADER_LENGTH_IN_BYTES = 4,
|
||||
TRANSMISSION_TIME_OFFSET_LENGTH_IN_BYTES = 4
|
||||
};
|
||||
const size_t kRtpOneByteHeaderLength = 4;
|
||||
const size_t kTransmissionTimeOffsetLength = 4;
|
||||
|
||||
struct HeaderExtension {
|
||||
HeaderExtension(RTPExtensionType extension_type)
|
||||
: type(extension_type),
|
||||
length(0) {
|
||||
if (type == kRtpExtensionTransmissionTimeOffset) {
|
||||
length = TRANSMISSION_TIME_OFFSET_LENGTH_IN_BYTES;
|
||||
length = kTransmissionTimeOffsetLength;
|
||||
}
|
||||
}
|
||||
|
||||
@ -69,4 +67,5 @@ class RtpHeaderExtensionMap {
|
||||
std::map<uint8_t, HeaderExtension*> extensionMap_;
|
||||
};
|
||||
}
|
||||
|
||||
#endif // WEBRTC_MODULES_RTP_RTCP_RTP_HEADER_EXTENSION_H_
|
||||
|
||||
Reference in New Issue
Block a user