Index: webrtc/media/engine/webrtcvideoengine2_unittest.cc |
diff --git a/webrtc/media/engine/webrtcvideoengine2_unittest.cc b/webrtc/media/engine/webrtcvideoengine2_unittest.cc |
index c2293426891884d6006b0725c4e38718ea129880..b089d86ffaef7cf3662d20020d3591dd568e954e 100644 |
--- a/webrtc/media/engine/webrtcvideoengine2_unittest.cc |
+++ b/webrtc/media/engine/webrtcvideoengine2_unittest.cc |
@@ -473,8 +473,8 @@ TEST_F(WebRtcVideoEngine2Test, |
frame.width = 1280; |
frame.height = 720; |
frame.fourcc = cricket::FOURCC_I420; |
- frame.data_size = static_cast<uint32_t>( |
- cricket::VideoFrame::SizeOf(frame.width, frame.height)); |
+ frame.data_size = frame.width * frame.height + |
+ 2 * ((frame.width + 1) / 2) * ((frame.height + 1) / 2); |
rtc::scoped_ptr<char[]> data(new char[frame.data_size]); |
frame.data = data.get(); |
memset(frame.data, 1, frame.data_size); |