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

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


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

hls: 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=3aea33378b0b317b99fce2eeaca8b31bf7cc6aba
---

 modules/demux/hls/playlist/Parser.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/hls/playlist/Parser.cpp b/modules/demux/hls/playlist/Parser.cpp
index e2e1aaefe4..5dc889d78f 100644
--- a/modules/demux/hls/playlist/Parser.cpp
+++ b/modules/demux/hls/playlist/Parser.cpp
@@ -42,6 +42,7 @@
 #include <map>
 #include <cctype>
 #include <algorithm>
+#include <limits>
 
 using namespace adaptive;
 using namespace adaptive::playlist;



More information about the vlc-commits mailing list