[vlc-commits] adaptive: add missing <limits> include

Robert-André Mauchin git at videolan.org
Sun Jan 3 15:14:49 UTC 2021


vlc | branch: master | Robert-André Mauchin <zebob.m at gmail.com> | Mon Dec 14 03:23:52 2020 +0100| [e3de1b709b258d2b0e316d927f5c828bdb1a738a] | committer: Alexandre Janniaux

adaptive: add missing <limits> include

Compilation would fail with:

> error: 'numeric_limits' is not a member of 'std'

without this include because of some hardening build
flags mandated on Fedora Linux, with GCC 11.

Refs #25325

Signed-off-by: Robert-André Mauchin <zebob.m at gmail.com>
Signed-off-by: Alexandre Janniaux <ajanni at videolabs.io>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e3de1b709b258d2b0e316d927f5c828bdb1a738a
---

 modules/demux/adaptive/playlist/Inheritables.cpp       | 1 +
 modules/demux/adaptive/playlist/SegmentInformation.cpp | 1 +
 modules/demux/adaptive/playlist/SegmentTimeline.cpp    | 1 +
 3 files changed, 3 insertions(+)

diff --git a/modules/demux/adaptive/playlist/Inheritables.cpp b/modules/demux/adaptive/playlist/Inheritables.cpp
index 16c1ef4d2f..c19bba99ba 100644
--- a/modules/demux/adaptive/playlist/Inheritables.cpp
+++ b/modules/demux/adaptive/playlist/Inheritables.cpp
@@ -29,6 +29,7 @@
 #include "SegmentTimeline.h"
 
 #include <algorithm>
+#include <limits>
 
 using namespace adaptive::playlist;
 using namespace adaptive;
diff --git a/modules/demux/adaptive/playlist/SegmentInformation.cpp b/modules/demux/adaptive/playlist/SegmentInformation.cpp
index 496b26071c..a79b1a2602 100644
--- a/modules/demux/adaptive/playlist/SegmentInformation.cpp
+++ b/modules/demux/adaptive/playlist/SegmentInformation.cpp
@@ -34,6 +34,7 @@
 
 #include <algorithm>
 #include <cassert>
+#include <limits>
 
 using namespace adaptive::playlist;
 
diff --git a/modules/demux/adaptive/playlist/SegmentTimeline.cpp b/modules/demux/adaptive/playlist/SegmentTimeline.cpp
index 51e2873c13..2f140d1112 100644
--- a/modules/demux/adaptive/playlist/SegmentTimeline.cpp
+++ b/modules/demux/adaptive/playlist/SegmentTimeline.cpp
@@ -29,6 +29,7 @@
 
 #include <algorithm>
 #include <sstream>
+#include <limits>
 
 using namespace adaptive::playlist;
 



More information about the vlc-commits mailing list