and unify algorithms a bit more. BUG=webrtc:15214 Change-Id: Ie9903f3e56d25b1dc026367e8ae6817275faa07b Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/328442 Reviewed-by: Florent Castelli <orphis@webrtc.org> Commit-Queue: Philipp Hancke <phancke@microsoft.com> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Cr-Commit-Position: refs/heads/main@{#41244}