diff options
Diffstat (limited to 'hlsPlayer.cpp')
-rw-r--r-- | hlsPlayer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hlsPlayer.cpp b/hlsPlayer.cpp index ca1d91f..8d714d5 100644 --- a/hlsPlayer.cpp +++ b/hlsPlayer.cpp @@ -6,6 +6,7 @@ #include <Poco/Exception.h> #include <pcrecpp.h> +#include <algorithm> #include "Plexservice.h" #include "XmlObject.h" @@ -210,7 +211,7 @@ int cHlsSegmentLoader::EstimateSegmentSize() int len = m_indexParser.TargetDuration; double estSize = (bandw) * len; - estSize = max(estSize, 1.0); + estSize = std::max(estSize, 1.0); // default if(estSize <= 1) { estSize = 32; |