Remove minimum bucket returned by histogram quantile function.

This fixes a bug in delay manager relative arrival delay mode that caused the effective minimum target level to be 2 packets instead of 1.

Bug: webrtc:10333
Change-Id: I33d32c8da692a3db22179edb923873d307f740fd
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/150785
Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org>
Reviewed-by: Minyue Li <minyue@webrtc.org>
Commit-Queue: Jakob Ivarsson <jakobi@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#29002}
This commit is contained in:
Jakob Ivarsson
2019-08-29 10:33:06 +02:00
committed by Commit Bot
parent b4a6128e28
commit a2479f7dc4
2 changed files with 4 additions and 4 deletions

View File

@ -395,7 +395,7 @@ int DelayManager::CalculateTargetLevel(int iat_packets, bool reordered) {
break;
}
case INTER_ARRIVAL_TIME: {
target_level = bucket_index;
target_level = std::max(bucket_index, 1);
base_target_level_ = target_level;
// Update detector for delay peaks.
bool delay_peak_found =