Fix build errors with GCC.

TBR=mflodman
BUG=
TEST=

Review URL: https://webrtc-codereview.appspot.com/389006

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1652 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
stefan@webrtc.org 2012-02-09 13:14:04 +00:00
parent 7adab0922d
commit 9c84b0dc9f
3 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ class FecPacket;
class ForwardErrorCorrection {
public:
// Maximum number of media packets we can protect
static const int kMaxMediaPackets = 48;
static const unsigned int kMaxMediaPackets = 48u;
// TODO(holmer): As a next step all these struct-like packet classes should be
// refactored into proper classes, and their members should be made private.

View File

@ -152,7 +152,7 @@ RTPSenderVideo::SendVideoPacket(const FrameType frameType,
// Add packet to FEC list
_rtpPacketListFec.push_back(ptrGenericFEC);
// FEC can only protect up to kMaxMediaPackets packets
if (static_cast<int>(_mediaPacketListFec.size()) <
if (_mediaPacketListFec.size() <
ForwardErrorCorrection::kMaxMediaPackets)
{
_mediaPacketListFec.push_back(ptrGenericFEC->pkt);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
@ -135,7 +135,7 @@ private:
bool _useUepProtectionDelta;
WebRtc_UWord8 _fecProtectionFactor;
bool _fecUseUepProtection;
int _numberFirstPartition;
unsigned int _numberFirstPartition;
std::list<ForwardErrorCorrection::Packet*> _mediaPacketListFec;
std::list<RtpPacket*> _rtpPacketListFec;
// Bitrate used for FEC payload, RED headers, RTP headers for FEC packets