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

Robert-André Mauchin git at videolan.org
Fri Mar 26 12:57:07 UTC 2021


vlc/vlc-3.0 | branch: master | Robert-André Mauchin <zebob.m at gmail.com> | Mon Dec 14 03:23:52 2020 +0100| [f348c4aae8b5b029fbc642d7f9299e34fa27a567] | committer: Jean-Baptiste Kempf

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>
(cherry picked from commit e3de1b709b258d2b0e316d927f5c828bdb1a738a)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 218160e84f..fb17799b85 100644
--- a/modules/demux/adaptive/playlist/Inheritables.cpp
+++ b/modules/demux/adaptive/playlist/Inheritables.cpp
@@ -23,6 +23,7 @@
 #endif
 
 #include "Inheritables.hpp"
+#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 344e155c78..8eeb054397 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 7daa517dde..3352f4e905 100644
--- a/modules/demux/adaptive/playlist/SegmentTimeline.cpp
+++ b/modules/demux/adaptive/playlist/SegmentTimeline.cpp
@@ -27,6 +27,7 @@
 #include "SegmentTimeline.h"
 
 #include <algorithm>
+#include <limits>
 
 using namespace adaptive::playlist;
 



More information about the vlc-commits mailing list