WebRtcVideoFrameTest: Initialize memory to fix DrMemory error
R=pbos@webrtc.org, tommi@webrtc.org Review URL: https://webrtc-codereview.appspot.com/41029004 Cr-Commit-Position: refs/heads/master@{#8566} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8566 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
909f494b43
commit
cb04aa4a81
@ -25,6 +25,8 @@
|
||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "talk/media/base/videoframe_unittest.h"
|
||||
#include "talk/media/webrtc/webrtcvideoframe.h"
|
||||
|
||||
@ -53,6 +55,8 @@ class WebRtcVideoFrameTest : public VideoFrameTest<cricket::WebRtcVideoFrame> {
|
||||
((frame_width + 1) / 2) * ((frame_height + 1) / 2) * 2;
|
||||
rtc::scoped_ptr<uint8[]> captured_frame_buffer(
|
||||
new uint8[captured_frame.data_size]);
|
||||
// Initialize memory to satisfy DrMemory tests.
|
||||
memset(captured_frame_buffer.get(), 0, captured_frame.data_size);
|
||||
captured_frame.data = captured_frame_buffer.get();
|
||||
|
||||
// Create the new frame from the CapturedFrame.
|
||||
|
Loading…
x
Reference in New Issue
Block a user