Prevent asserting on unset start bitrate.

Quick fix for crash in WebRtcBrowserTest.NegotiateOfferWithBLine.
Follow-up CL from stefan@ that changes this path is under review.

BUG=1788,1667
R=stefan@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/51419005

Cr-Commit-Position: refs/heads/master@{#8823}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8823 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
pbos@webrtc.org 2015-03-23 09:48:41 +00:00
parent 50ed0d9630
commit 3335a4ffc8

View File

@ -121,6 +121,7 @@ VideoSendStream::VideoSendStream(
// Duplicate assert checking of bitrate config. These should be checked in
// Call but are added here for verbosity.
assert(bitrate_config.min_bitrate_bps >= 0);
if (bitrate_config.start_bitrate_bps > 0)
assert(bitrate_config.start_bitrate_bps >= bitrate_config.min_bitrate_bps);
if (bitrate_config.max_bitrate_bps != -1)
assert(bitrate_config.max_bitrate_bps >= bitrate_config.start_bitrate_bps);