forked from premiere/premiere-libtorrent
fix assert in utp_stream at high rates
This commit is contained in:
parent
e13bfce017
commit
eefba55419
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue