diff --git a/video/encoder_bitrate_adjuster.cc b/video/encoder_bitrate_adjuster.cc index 5fa7434acd..5af9128a86 100644 --- a/video/encoder_bitrate_adjuster.cc +++ b/video/encoder_bitrate_adjuster.cc @@ -289,6 +289,10 @@ VideoBitrateAllocation EncoderBitrateAdjuster::AdjustRateAllocation( } } + // Since no spatial layers or streams are toggled by the adjustment + // bw-limited flag stays the same. + adjusted_allocation.set_bw_limited(rates.bitrate.is_bw_limited()); + return adjusted_allocation; } diff --git a/video/video_stream_encoder.cc b/video/video_stream_encoder.cc index 52dc53f432..2a6f14c361 100644 --- a/video/video_stream_encoder.cc +++ b/video/video_stream_encoder.cc @@ -183,6 +183,7 @@ VideoBitrateAllocation UpdateAllocationFromEncoderInfo( } } } + new_allocation.set_bw_limited(allocation.is_bw_limited()); return new_allocation; } } // namespace