From 5ce0ff05ae942a83675fbd7e3d0736679c84ec6e Mon Sep 17 00:00:00 2001 From: "mikhal@google.com" Date: Tue, 9 Aug 2011 17:17:39 +0000 Subject: [PATCH] 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 --- src/common_video/vplib/main/source/vplib.cc | 11 +---------- .../video_coding/codecs/vp8/main/source/vp8.cc | 4 ---- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/common_video/vplib/main/source/vplib.cc b/src/common_video/vplib/main/source/vplib.cc index 5b8cd66ef..e33a032f8 100644 --- a/src/common_video/vplib/main/source/vplib.cc +++ b/src/common_video/vplib/main/source/vplib.cc @@ -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; diff --git a/src/modules/video_coding/codecs/vp8/main/source/vp8.cc b/src/modules/video_coding/codecs/vp8/main/source/vp8.cc index 6bcca4d90..1cccb2a7a 100644 --- a/src/modules/video_coding/codecs/vp8/main/source/vp8.cc +++ b/src/modules/video_coding/codecs/vp8/main/source/vp8.cc @@ -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) {