Fix the build by putting in a typecast to avoid a comparison between
signed and unsigned ints introduced in cl/81073932. R=pbos@webrtc.org Review URL: https://webrtc-codereview.appspot.com/26279004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7776 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
dea5173edf
commit
146e0fd30f
@ -3901,10 +3901,12 @@ bool WebRtcVideoMediaChannel::SetSendParams(
|
||||
// others expect behavior from the adapter different than what it
|
||||
// actually does. We should fix the tests and remove this block.
|
||||
VideoFormat max = send_channel->adapt_format();
|
||||
size_t max_width = static_cast<size_t>(max.width);
|
||||
size_t max_height = static_cast<size_t>(max.height);
|
||||
if ((!frame.screencast &&
|
||||
(frame.width > max.width || frame.height > max.height))) {
|
||||
frame.width = max.width;
|
||||
frame.height = max.height;
|
||||
(frame.width > max_width || frame.height > max_height))) {
|
||||
frame.width = max_width;
|
||||
frame.height = max_height;
|
||||
}
|
||||
|
||||
webrtc::VideoCodec codec;
|
||||
|
Loading…
Reference in New Issue
Block a user