Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add check for negative max bitrate in VideoSendStream.
The encoder_max_bitrate_bps_ was checked to be > 0 but since it is unsigned and the value came from the signed initial_encoder_max_bitrate negative values were allowed and resulted in using UINT32_MAX. This CL adds a check for negative input values and uses a safer default. Bug: None Change-Id: Ia12ea406091ab9c3a498ecf554f18ba2628ecbe5 Reviewed-on: https://webrtc-review.googlesource.com/61783 Reviewed-by: Erik Språng <[email protected]> Commit-Queue: Sebastian Jansson <[email protected]> Cr-Commit-Position: refs/heads/master@{#22453}
- Loading branch information