From 1b78a7eb3f418460da03672b1d1af1d9488bb544 Mon Sep 17 00:00:00 2001 From: Sergey Silkin Date: Tue, 16 Jul 2024 13:08:13 +0200 Subject: [PATCH] Remove dependency on WebRTC-LowresSimulcastBitrateInterpolation Dependency on WebRTC-LowresSimulcastBitrateInterpolation field trial in LimitSimulcastLayerCount() is unnecessary. Bug: webrtc:351644568, b/352504711 Change-Id: I9daf9cbfb5b6a582cd9f03ce1a86e5bbd2b2bfd4 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/357260 Reviewed-by: Danil Chapovalov Commit-Queue: Sergey Silkin Cr-Commit-Position: refs/heads/main@{#42644} --- video/config/simulcast.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/video/config/simulcast.cc b/video/config/simulcast.cc index ced7b89587..809845762d 100644 --- a/video/config/simulcast.cc +++ b/video/config/simulcast.cc @@ -378,13 +378,11 @@ size_t LimitSimulcastLayerCount(int width, webrtc::ParseFieldTrial({&max_ratio}, trials.Lookup("WebRTC-SimulcastLayerLimitRoundUp")); - const bool enable_lowres_bitrate_interpolation = - EnableLowresBitrateInterpolation(trials); size_t adaptive_layer_count = std::max( - need_layers, - InterpolateSimulcastFormat(width, height, max_ratio.GetOptional(), - enable_lowres_bitrate_interpolation, codec) - .max_layers); + need_layers, InterpolateSimulcastFormat( + width, height, max_ratio.GetOptional(), + /*enable_lowres_bitrate_interpolation=*/false, codec) + .max_layers); if (layer_count > adaptive_layer_count) { RTC_LOG(LS_WARNING) << "Reducing simulcast layer count from " << layer_count << " to " << adaptive_layer_count;