Fix build issue with clang.

BUG=
TEST=

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

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1244 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
stefan@webrtc.org 2011-12-20 09:27:09 +00:00
parent 8dc9e4760e
commit 62fdc42e9c
2 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ void VP8RpsTest::Perform() {
double starttime = clock()/(double)CLOCKS_PER_SEC; double starttime = clock()/(double)CLOCKS_PER_SEC;
while (!complete) { while (!complete) {
CodecSpecific_InitBitrate(); CodecSpecific_InitBitrate();
complete = Encode(&decCallback2); complete = EncodeRps(&decCallback2);
if (!frameQueue.Empty() || complete) { if (!frameQueue.Empty() || complete) {
while (!frameQueue.Empty()) { while (!frameQueue.Empty()) {
_frameToDecode = _frameToDecode =
@ -132,7 +132,7 @@ void VP8RpsTest::Perform() {
Teardown(); Teardown();
} }
bool VP8RpsTest::Encode(RpsDecodeCompleteCallback* decodeCallback) { bool VP8RpsTest::EncodeRps(RpsDecodeCompleteCallback* decodeCallback) {
_lengthEncFrame = 0; _lengthEncFrame = 0;
size_t bytes_read = fread(_sourceBuffer, 1, _lengthSourceFrame, _sourceFile); size_t bytes_read = fread(_sourceBuffer, 1, _lengthSourceFrame, _sourceFile);
if (bytes_read < _lengthSourceFrame) if (bytes_read < _lengthSourceFrame)

View File

@ -25,7 +25,7 @@ class VP8RpsTest : public VP8NormalAsyncTest {
private: private:
VP8RpsTest(std::string name, std::string description, unsigned int testNo) VP8RpsTest(std::string name, std::string description, unsigned int testNo)
: VP8NormalAsyncTest(name, description, testNo) {} : VP8NormalAsyncTest(name, description, testNo) {}
virtual bool Encode(RpsDecodeCompleteCallback* decodeCallback); virtual bool EncodeRps(RpsDecodeCompleteCallback* decodeCallback);
virtual int Decode(int lossValue = 0); virtual int Decode(int lossValue = 0);
static bool CheckIfBitExact(const void *ptrA, unsigned int aLengthBytes, static bool CheckIfBitExact(const void *ptrA, unsigned int aLengthBytes,