From d445d2229eb8d43a3ed25263d9e6f06a3aac7cff Mon Sep 17 00:00:00 2001 From: "pbos@webrtc.org" Date: Thu, 23 May 2013 12:59:51 +0000 Subject: [PATCH] CreateEmptyFrame casts from size_t to int. BUG= R=mflodman@webrtc.org Review URL: https://webrtc-codereview.appspot.com/1540004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4094 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/video_engine/test/common/frame_generator.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/webrtc/video_engine/test/common/frame_generator.cc b/webrtc/video_engine/test/common/frame_generator.cc index bfe248aeb..9e4df7aa2 100644 --- a/webrtc/video_engine/test/common/frame_generator.cc +++ b/webrtc/video_engine/test/common/frame_generator.cc @@ -39,8 +39,11 @@ FrameGenerator::FrameGenerator(size_t width, size_t height, Clock* clock) // Generate frame by constructor arguments assert(width > 0); assert(height > 0); - frame_.CreateEmptyFrame(static_cast(width), static_cast(height), - width, (width + 1) / 2, (width + 1) / 2); + frame_.CreateEmptyFrame(static_cast(width), + static_cast(height), + static_cast(width), + static_cast((width + 1) / 2), + static_cast((width + 1) / 2)); } BlackFrameGenerator::BlackFrameGenerator(size_t width,