Fix VP8 tests
These are changes that make the VP8 tests work again after the wrapper was updated. The codec specific info is now propagated properly through the encoder callback and into the queue struct. Also added an fclose to get rid of a valgrind warning. Review URL: http://webrtc-codereview.appspot.com/138011 git-svn-id: http://webrtc.googlecode.com/svn/trunk@526 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -169,6 +169,7 @@ NormalAsyncTest::Teardown()
|
||||
{
|
||||
Test::Teardown();
|
||||
fclose(_sourceFile);
|
||||
fclose(_encodedFile);
|
||||
fclose(_decodedFile);
|
||||
}
|
||||
|
||||
@@ -529,6 +530,16 @@ NormalAsyncTest::Decode(int lossValue)
|
||||
return ret;
|
||||
}
|
||||
|
||||
webrtc::CodecSpecificInfo*
|
||||
NormalAsyncTest::CopyCodecSpecificInfo(
|
||||
const webrtc::CodecSpecificInfo* codecSpecificInfo) const
|
||||
{
|
||||
webrtc::CodecSpecificInfo* info = new webrtc::CodecSpecificInfo;
|
||||
info->codecType = codecSpecificInfo->codecType;
|
||||
info->codecSpecific = codecSpecificInfo->codecSpecific;
|
||||
return info;
|
||||
}
|
||||
|
||||
void NormalAsyncTest::CodecSpecific_InitBitrate()
|
||||
{
|
||||
if (_bitRate == 0)
|
||||
|
@@ -85,8 +85,7 @@ public:
|
||||
virtual void Decoded(const webrtc::RawImage& decodedImage);
|
||||
virtual webrtc::CodecSpecificInfo*
|
||||
CopyCodecSpecificInfo(
|
||||
const webrtc::CodecSpecificInfo* /*codecSpecificInfo */) const
|
||||
{ return NULL; };
|
||||
const webrtc::CodecSpecificInfo* codecSpecificInfo) const;
|
||||
virtual void CopyEncodedImage(TestVideoEncodedBuffer& dest,
|
||||
webrtc::EncodedImage& src,
|
||||
void* /*codecSpecificInfo*/) const;
|
||||
|
Reference in New Issue
Block a user