Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Unified Diff: webrtc/media/webrtc/webrtcvideoengine2_unittest.cc

Issue 1688953003: Revert of Initial cleanup of cricket::VideoFrame. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/media/base/videoframe_unittest.h ('k') | webrtc/media/webrtc/webrtcvideoframe_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/webrtc/webrtcvideoengine2_unittest.cc
diff --git a/webrtc/media/webrtc/webrtcvideoengine2_unittest.cc b/webrtc/media/webrtc/webrtcvideoengine2_unittest.cc
index 6baa74b3b7b04d6be3d6d74c20c0d4293c1f4ecf..f12cc65124fa86f16c11b675527ab1067d8e2893 100644
--- a/webrtc/media/webrtc/webrtcvideoengine2_unittest.cc
+++ b/webrtc/media/webrtc/webrtcvideoengine2_unittest.cc
@@ -473,8 +473,8 @@
frame.width = 1280;
frame.height = 720;
frame.fourcc = cricket::FOURCC_I420;
- frame.data_size = frame.width * frame.height +
- 2 * ((frame.width + 1) / 2) * ((frame.height + 1) / 2);
+ frame.data_size = static_cast<uint32_t>(
+ cricket::VideoFrame::SizeOf(frame.width, frame.height));
rtc::scoped_ptr<char[]> data(new char[frame.data_size]);
frame.data = data.get();
memset(frame.data, 1, frame.data_size);
« no previous file with comments | « webrtc/media/base/videoframe_unittest.h ('k') | webrtc/media/webrtc/webrtcvideoframe_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698