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:
parent
d15afa86c2
commit
5ce0ff05ae
@ -3238,6 +3238,7 @@ PadI420Frame(const WebRtc_UWord8* inBuffer, WebRtc_UWord8* outBuffer,
|
|||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (toWidth == fromWidth && toHeight == fromHeight)
|
if (toWidth == fromWidth && toHeight == fromHeight)
|
||||||
{
|
{
|
||||||
// nothing to do
|
// nothing to do
|
||||||
@ -3254,16 +3255,6 @@ PadI420Frame(const WebRtc_UWord8* inBuffer, WebRtc_UWord8* outBuffer,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fromWidth < 0 || fromHeight < 0)
|
|
||||||
{
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (toWidth < 0 || toHeight < 0)
|
|
||||||
{
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (toWidth < fromWidth || toHeight < fromHeight)
|
if (toWidth < fromWidth || toHeight < fromHeight)
|
||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -194,10 +194,6 @@ VP8Encoder::InitEncode(const VideoCodec* inst,
|
|||||||
{
|
{
|
||||||
return WEBRTC_VIDEO_CODEC_ERR_PARAMETER;
|
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
|
// allow zero to represent an unspecified maxBitRate
|
||||||
if (inst->maxBitrate > 0 && inst->startBitrate > inst->maxBitrate)
|
if (inst->maxBitrate > 0 && inst->startBitrate > inst->maxBitrate)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user