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:
hlundin@google.com 2011-06-15 11:35:59 +00:00
parent 7c53a0c67e
commit b7686af27c
2 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@ RtpFormatVp8::RtpFormatVp8(const WebRtc_UWord8* payload_data,
const RTPFragmentationHeader& fragmentation, const RTPFragmentationHeader& fragmentation,
VP8PacketizerMode mode) VP8PacketizerMode mode)
: payload_data_(payload_data), : payload_data_(payload_data),
payload_size_(payload_size), payload_size_(static_cast<int>(payload_size)),
payload_bytes_sent_(0), payload_bytes_sent_(0),
part_ix_(0), part_ix_(0),
beginning_(true), beginning_(true),
@ -46,7 +46,7 @@ RtpFormatVp8::RtpFormatVp8(const WebRtc_UWord8* payload_data,
RtpFormatVp8::RtpFormatVp8(const WebRtc_UWord8* payload_data, RtpFormatVp8::RtpFormatVp8(const WebRtc_UWord8* payload_data,
WebRtc_UWord32 payload_size) WebRtc_UWord32 payload_size)
: payload_data_(payload_data), : payload_data_(payload_data),
payload_size_(payload_size), payload_size_(static_cast<int>(payload_size)),
part_info_(), part_info_(),
payload_bytes_sent_(0), payload_bytes_sent_(0),
part_ix_(0), part_ix_(0),
@ -58,7 +58,7 @@ RtpFormatVp8::RtpFormatVp8(const WebRtc_UWord8* payload_data,
separate_first_(sep_first_modes_[kSloppy]) separate_first_(sep_first_modes_[kSloppy])
{ {
part_info_.VerifyAndAllocateFragmentationHeader(1); part_info_.VerifyAndAllocateFragmentationHeader(1);
part_info_.fragmentationLength[0] = payload_size_; part_info_.fragmentationLength[0] = payload_size;
part_info_.fragmentationOffset[0] = 0; part_info_.fragmentationOffset[0] = 0;
} }

View File

@ -89,7 +89,7 @@ private:
WebRtc_UWord8* buffer); WebRtc_UWord8* buffer);
const WebRtc_UWord8* payload_data_; const WebRtc_UWord8* payload_data_;
const WebRtc_UWord32 payload_size_; const int payload_size_;
RTPFragmentationHeader part_info_; RTPFragmentationHeader part_info_;
int payload_bytes_sent_; int payload_bytes_sent_;
int part_ix_; int part_ix_;