bitrate: fix integer roundoff
authorRemy Horton <remy.horton@intel.com>
Wed, 19 Apr 2017 13:26:48 +0000 (14:26 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 20 Apr 2017 23:08:07 +0000 (01:08 +0200)
In the absence of traffic, it is possible for the bitrate moving average
to get stuck at a non-zero value, due to the calculated delta being less
than what an integer can represent.

Fixes: 2ad7ba9a6567 ("bitrate: add bitrate statistics library")

Signed-off-by: Remy Horton <remy.horton@intel.com>

No differences found