Removing compiler warnings from video components

Review URL: http://webrtc-codereview.appspot.com/101002

git-svn-id: http://webrtc.googlecode.com/svn/trunk@336 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
mikhal@google.com 2011-08-09 17:17:39 +00:00
parent d15afa86c2
commit 5ce0ff05ae
2 changed files with 1 additions and 14 deletions

View File

@ -3238,6 +3238,7 @@ PadI420Frame(const WebRtc_UWord8* inBuffer, WebRtc_UWord8* outBuffer,
{
return -1;
}
if (toWidth == fromWidth && toHeight == fromHeight)
{
// nothing to do
@ -3254,16 +3255,6 @@ PadI420Frame(const WebRtc_UWord8* inBuffer, WebRtc_UWord8* outBuffer,
return -1;
}
if (fromWidth < 0 || fromHeight < 0)
{
return -1;
}
if (toWidth < 0 || toHeight < 0)
{
return -1;
}
if (toWidth < fromWidth || toHeight < fromHeight)
{
return -1;

View File

@ -194,10 +194,6 @@ VP8Encoder::InitEncode(const VideoCodec* inst,
{
return WEBRTC_VIDEO_CODEC_ERR_PARAMETER;
}
if (inst->startBitrate < 0 || inst->maxBitrate < 0)
{
return WEBRTC_VIDEO_CODEC_ERR_PARAMETER;
}
// allow zero to represent an unspecified maxBitRate
if (inst->maxBitrate > 0 && inst->startBitrate > inst->maxBitrate)
{