Commit 3172bc9b authored by Mirko Bonadei's avatar Mirko Bonadei Committed by Commit Bot

Use CHECK_LE instead of RTC_CHECK_LE.

RTC_* checks are intended to be used only inside WebRTC, Chromium should
use the checks defined by base/logging.h.

Bug: webrtc:9419
Change-Id: I98b52b1012c6cac49cc7ccd5bf22e30e471f4492
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1815125
Commit-Queue: Steve Anton <steveanton@chromium.org>
Reviewed-by: default avatarSteve Anton <steveanton@chromium.org>
Cr-Commit-Position: refs/heads/master@{#698773}
parent a53a276d
......@@ -449,8 +449,8 @@ void RTCVideoEncoder::Impl::RequestEncodingParametersChange(
// TODO(sprang): Clean this up if/when webrtc struct moves to int.
uint32_t layer_bitrate =
parameters.bitrate.GetBitrate(spatial_id, temporal_id);
RTC_CHECK_LE(layer_bitrate,
static_cast<uint32_t>(std::numeric_limits<int>::max()));
CHECK_LE(layer_bitrate,
static_cast<uint32_t>(std::numeric_limits<int>::max()));
if (!allocation.SetBitrate(spatial_id, temporal_id, layer_bitrate)) {
LOG(WARNING) << "Overflow in bitrate allocation: "
<< parameters.bitrate.ToString();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment