During a fix of an unrelated issue, a bug was introduced in the rtp analyzer tool: when the number of data points was divisible by RTPStatitstics.PLOT_RESOLUTION_MS (which is 50), pyplot.plot was called with arrays of different lengths. One of the arrays could be one element larger.

This change trims the potentially longer array to the size of the smaller one.

NOTRY=True
BUG=none

Review-Url: https://codereview.webrtc.org/2357883002
Cr-Commit-Position: refs/heads/master@{#14657}
This commit is contained in:
aleloi 2016-10-18 01:44:44 -07:00 committed by Commit bot
parent e405d9b8df
commit 553024ab34

View File

@ -259,7 +259,7 @@ class RTPStatistics(object):
self.data_points)
plt.figure(1)
plt.plot(time_axis, delay)
plt.plot(time_axis, delay[:len(time_axis)])
plt.xlabel("Send time [s]")
plt.ylabel("Relative transport delay [ms]")