Increased event log visualizer RTP clock estimation tolerance.

Increased the tolarence of the RTP clock estimation without causing overlap between any of the known frequencies.

Bug: None
Change-Id: I7c3ffa0e69b25799d740f7eed17c7bfd464cd254
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/149835
Reviewed-by: Björn Terelius <terelius@webrtc.org>
Commit-Queue: Philip Eliasson <philipel@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#29000}
This commit is contained in:
philipel
2019-08-20 15:59:57 +02:00
committed by Commit Bot
parent 7fa42778b4
commit 3fa4938faf

View File

@ -156,7 +156,7 @@ absl::optional<uint32_t> EstimateRtpClockFrequency(
double estimated_frequency =
(last_rtp_timestamp - first_rtp_timestamp) / duration;
for (uint32_t f : {8000, 16000, 32000, 48000, 90000}) {
if (std::fabs(estimated_frequency - f) < 0.05 * f) {
if (std::fabs(estimated_frequency - f) < 0.15 * f) {
return f;
}
}