Fixing error introduced in r2540.

The error was in the test framework - did not copy the frame appropriately.
TESTED = test_framework unittest

Memory free

BUG=

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

git-svn-id: http://webrtc.googlecode.com/svn/trunk@2541 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
mikhal@webrtc.org 2012-07-31 18:10:14 +00:00
parent a2031d58f6
commit 4147562088

View File

@ -585,10 +585,7 @@ UnitTest::Perform()
WEBRTC_VIDEO_CODEC_OK);
VideoFrame tempInput;
unsigned int tmpLength = inputImage.Length() / 4;
unsigned int tmpSize = inputImage.Length() / 4;
tempInput.Swap(inputImage.Buffer(),
tmpLength,
tmpSize);
tempInput.CopyFrame(tmpLength, inputImage.Buffer());
tempInput.SetWidth(tempInst.width);
tempInput.SetHeight(tempInst.height);
VideoFrameType videoFrameType = kDeltaFrame;
@ -698,6 +695,7 @@ UnitTest::Perform()
rewind(_sourceFile);
RateControlTests();
inputImage.Free();
Teardown();
}
@ -771,6 +769,7 @@ UnitTest::RateControlTests()
ASSERT_TRUE(feof(_sourceFile) != 0);
rewind(_sourceFile);
}
inputImage.Free();
}
bool