Commit 0535b128 authored by Tristan Matthews's avatar Tristan Matthews Committed by François Cartegnie
Browse files

demux: adaptive: fix uninitialized average (CID #1374346)

Signed-off-by: François Cartegnie's avatarFrancois Cartegnie <>
parent 3ed58545
......@@ -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();
Supports Markdown
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