From af49062a353f6954a2a0f0e83a7b898faedff2fe Mon Sep 17 00:00:00 2001 From: "henrik.lundin@webrtc.org" Date: Mon, 12 Nov 2012 09:16:08 +0000 Subject: [PATCH] Revert 3071 - i420:verify image length This CL breaks vie_auto_test, test case ViEVideoVerificationTest.RunsBaseStandardTestWithoutErrors. BUG= Review URL: https://webrtc-codereview.appspot.com/930016 TBR=mikhal@webrtc.org Review URL: https://webrtc-codereview.appspot.com/933014 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3078 4adac7df-926f-26a2-2b94-8c16560cd09d --- .../modules/video_coding/codecs/i420/main/source/i420.cc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/webrtc/modules/video_coding/codecs/i420/main/source/i420.cc b/webrtc/modules/video_coding/codecs/i420/main/source/i420.cc index 60397e67b6..f5831823ea 100644 --- a/webrtc/modules/video_coding/codecs/i420/main/source/i420.cc +++ b/webrtc/modules/video_coding/codecs/i420/main/source/i420.cc @@ -171,18 +171,10 @@ I420Decoder::Decode(const EncodedImage& inputImage, if (inputImage._length <= 0) { return WEBRTC_VIDEO_CODEC_ERR_PARAMETER; } - if (inputImage._completeFrame == false) { - return WEBRTC_VIDEO_CODEC_ERR_PARAMETER; - } if (!_inited) { return WEBRTC_VIDEO_CODEC_UNINITIALIZED; } - // Verify that the available length is sufficient: - int req_length = CalcBufferSize(kI420, _width, _height); - if (req_length > static_cast(inputImage._length)) { - return WEBRTC_VIDEO_CODEC_ERROR; - } // Set decoded image parameters. int half_width = (_width + 1) / 2; int half_height = (_height + 1) / 2;