fix assert in utp_stream at high rates

This commit is contained in:
Arvid Norberg 2014-12-30 20:44:18 +00:00
parent e13bfce017
commit eefba55419
1 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,8 @@ boost::uint32_t timestamp_history::add_sample(boost::uint32_t sample, bool step)
m_num_samples = 0;
}
++m_num_samples;
// don't let the counter wrap
if (m_num_samples < 0xfffe) ++m_num_samples;
// if sample is less than base, update the base
// and update the history entry (because it will