Skip to content

Commit

Permalink
Remove incorrect DCHECKs from LibaomAv1Encoder::SetRates.
Browse files Browse the repository at this point in the history
Bug: none
Change-Id: I6474418e04538151cfc1588a63e9ffa476e7fd7b
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/211870
Reviewed-by: Danil Chapovalov <[email protected]>
Commit-Queue: Philip Eliasson <[email protected]>
Cr-Commit-Position: refs/heads/master@{#33465}
  • Loading branch information
Philipel-WebRTC authored and Commit Bot committed Mar 15, 2021
1 parent fdd6099 commit b315951
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions modules/video_coding/codecs/av1/libaom_av1_encoder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -686,15 +686,8 @@ void LibaomAv1Encoder::SetRates(const RateControlParameters& parameters) {
return;
}

// Check input target bit rate value.
uint32_t rc_target_bitrate_kbps = parameters.bitrate.get_sum_kbps();
if (encoder_settings_.maxBitrate > 0)
RTC_DCHECK_LE(rc_target_bitrate_kbps, encoder_settings_.maxBitrate);
RTC_DCHECK_GE(rc_target_bitrate_kbps, encoder_settings_.minBitrate);

svc_controller_->OnRatesUpdated(parameters.bitrate);
// Set target bit rate.
cfg_.rc_target_bitrate = rc_target_bitrate_kbps;
cfg_.rc_target_bitrate = parameters.bitrate.get_sum_kbps();

if (SvcEnabled()) {
for (int sid = 0; sid < svc_params_->number_spatial_layers; ++sid) {
Expand Down

0 comments on commit b315951

Please sign in to comment.