[vlc-devel] [PATCH] demux: adaptive: fix uninitialized average (CID #1374346)
Tristan Matthews
tmatth at videolan.org
Wed Nov 2 00:04:48 CET 2016
---
modules/demux/adaptive/tools/MovingAverage.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/adaptive/tools/MovingAverage.hpp b/modules/demux/adaptive/tools/MovingAverage.hpp
index 79f42ce..d79f7f4 100644
--- a/modules/demux/adaptive/tools/MovingAverage.hpp
+++ b/modules/demux/adaptive/tools/MovingAverage.hpp
@@ -54,7 +54,7 @@ namespace adaptive
};
template <class T>
- MovingAverage<T>::MovingAverage(unsigned nbobs)
+ MovingAverage<T>::MovingAverage(unsigned nbobs) : avg(0)
{
if(nbobs < 1)
throw new std::exception();
--
2.10.2
More information about the vlc-devel
mailing list