Remove warnings on Windows
Make member variable payload_size_ int instead of unsigned to avoid warnings when comparing (> and >=). Review URL: http://webrtc-codereview.appspot.com/40001 git-svn-id: http://webrtc.googlecode.com/svn/trunk@86 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
7c53a0c67e
commit
b7686af27c
@ -30,7 +30,7 @@ RtpFormatVp8::RtpFormatVp8(const WebRtc_UWord8* payload_data,
|
||||
const RTPFragmentationHeader& fragmentation,
|
||||
VP8PacketizerMode mode)
|
||||
: payload_data_(payload_data),
|
||||
payload_size_(payload_size),
|
||||
payload_size_(static_cast<int>(payload_size)),
|
||||
payload_bytes_sent_(0),
|
||||
part_ix_(0),
|
||||
beginning_(true),
|
||||
@ -46,7 +46,7 @@ RtpFormatVp8::RtpFormatVp8(const WebRtc_UWord8* payload_data,
|
||||
RtpFormatVp8::RtpFormatVp8(const WebRtc_UWord8* payload_data,
|
||||
WebRtc_UWord32 payload_size)
|
||||
: payload_data_(payload_data),
|
||||
payload_size_(payload_size),
|
||||
payload_size_(static_cast<int>(payload_size)),
|
||||
part_info_(),
|
||||
payload_bytes_sent_(0),
|
||||
part_ix_(0),
|
||||
@ -58,7 +58,7 @@ RtpFormatVp8::RtpFormatVp8(const WebRtc_UWord8* payload_data,
|
||||
separate_first_(sep_first_modes_[kSloppy])
|
||||
{
|
||||
part_info_.VerifyAndAllocateFragmentationHeader(1);
|
||||
part_info_.fragmentationLength[0] = payload_size_;
|
||||
part_info_.fragmentationLength[0] = payload_size;
|
||||
part_info_.fragmentationOffset[0] = 0;
|
||||
}
|
||||
|
||||
|
@ -89,7 +89,7 @@ private:
|
||||
WebRtc_UWord8* buffer);
|
||||
|
||||
const WebRtc_UWord8* payload_data_;
|
||||
const WebRtc_UWord32 payload_size_;
|
||||
const int payload_size_;
|
||||
RTPFragmentationHeader part_info_;
|
||||
int payload_bytes_sent_;
|
||||
int part_ix_;
|
||||
|
Loading…
Reference in New Issue
Block a user