henrik.lundin e594213a2b Fix div-by-0 in NetEq's StatisticsCalculator
If a StatisticsCalculator::PeriodicUmaAverage object was created and
then deleted without any samples being logged, the destructor would call
the Metric() method, which calculated sum_/counter_. However, with no
samples logged, counter_ is 0.

This was found and verified using UBSan tests; see the bug for more info.

BUG=webrtc:5490
R=ivoc@webrtc.org

Review URL: https://codereview.webrtc.org/1678773003

Cr-Commit-Position: refs/heads/master@{#11534}
2016-02-09 08:36:02 +00:00
..
2016-02-08 13:31:53 +00:00
2016-02-08 13:31:53 +00:00
2016-02-05 07:52:35 +00:00
2016-01-04 21:44:16 +00:00
2016-02-09 01:35:55 +00:00
2016-02-08 13:31:53 +00:00
2015-11-16 19:02:02 +00:00
2016-02-03 12:30:10 +00:00
2016-02-05 07:52:35 +00:00

Name: WebRTC
URL: http://www.webrtc.org
Version: 90
License: BSD
License File: LICENSE

Description:
WebRTC provides real time voice and video processing
functionality to enable the implementation of 
PeerConnection/MediaStream.

Third party code used in this project is described 
in the file LICENSE_THIRD_PARTY.