Commit be322be4 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: adaptative: fix bitrate maths

::facepalm
parent b7d2d2a8
...@@ -63,7 +63,7 @@ void RateBasedAdaptationLogic::updateDownloadRate(size_t size, mtime_t time) ...@@ -63,7 +63,7 @@ void RateBasedAdaptationLogic::updateDownloadRate(size_t size, mtime_t time)
if(unlikely(time == 0)) if(unlikely(time == 0))
return; return;
size_t current = bpsRemainder + size * 8000 / time; size_t current = bpsRemainder + CLOCK_FREQ * size * 8 / time;
if (current >= bpsAvg) if (current >= bpsAvg)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment