diff --git a/webrtc/video_engine/test/common/frame_generator.cc b/webrtc/video_engine/test/common/frame_generator.cc index bfe248aeb8..9e4df7aa22 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,