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
This commit is contained in:
parent
9b30348cfc
commit
d445d2229e
@ -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<int>(width), static_cast<int>(height),
|
||||
width, (width + 1) / 2, (width + 1) / 2);
|
||||
frame_.CreateEmptyFrame(static_cast<int>(width),
|
||||
static_cast<int>(height),
|
||||
static_cast<int>(width),
|
||||
static_cast<int>((width + 1) / 2),
|
||||
static_cast<int>((width + 1) / 2));
|
||||
}
|
||||
|
||||
BlackFrameGenerator::BlackFrameGenerator(size_t width,
|
||||
|
Loading…
Reference in New Issue
Block a user