Fixing vpm valgrind issues introduced in r2893
Review URL: https://webrtc-codereview.appspot.com/933007 git-svn-id: http://webrtc.googlecode.com/svn/trunk@2996 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
512535097e
commit
9169b51fe7
@ -71,11 +71,8 @@ void VideoProcessingModuleTest::TearDown()
|
|||||||
|
|
||||||
TEST_F(VideoProcessingModuleTest, HandleNullBuffer)
|
TEST_F(VideoProcessingModuleTest, HandleNullBuffer)
|
||||||
{
|
{
|
||||||
|
// TODO(mikhal/stefan): Do we need this one?
|
||||||
VideoProcessingModule::FrameStats stats;
|
VideoProcessingModule::FrameStats stats;
|
||||||
memset(_videoFrame.buffer(kYPlane), 0, _size_y);
|
|
||||||
memset(_videoFrame.buffer(kUPlane), 0, _size_uv);
|
|
||||||
memset(_videoFrame.buffer(kVPlane), 0, _size_uv);
|
|
||||||
ASSERT_EQ(0, _vpm->GetFrameStats(&stats, _videoFrame));
|
|
||||||
// Video frame with unallocated buffer.
|
// Video frame with unallocated buffer.
|
||||||
I420VideoFrame videoFrame;
|
I420VideoFrame videoFrame;
|
||||||
videoFrame.set_width(_width);
|
videoFrame.set_width(_width);
|
||||||
@ -112,7 +109,6 @@ TEST_F(VideoProcessingModuleTest, HandleBadStats)
|
|||||||
TEST_F(VideoProcessingModuleTest, HandleBadSize)
|
TEST_F(VideoProcessingModuleTest, HandleBadSize)
|
||||||
{
|
{
|
||||||
VideoProcessingModule::FrameStats stats;
|
VideoProcessingModule::FrameStats stats;
|
||||||
ASSERT_EQ(0, _vpm->GetFrameStats(&stats, _videoFrame));
|
|
||||||
|
|
||||||
_videoFrame.ResetSize();
|
_videoFrame.ResetSize();
|
||||||
_videoFrame.set_width(_width);
|
_videoFrame.set_width(_width);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user