[vlc-commits] mkv: add missing <limits> include
Robert-André Mauchin
git at videolan.org
Sun Jan 3 15:14:51 UTC 2021
vlc | branch: master | Robert-André Mauchin <zebob.m at gmail.com> | Mon Dec 14 03:23:52 2020 +0100| [1d001c2084cdf440bb768f79f1b3c936a3fa1460] | committer: Alexandre Janniaux
mkv: 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.
Fix #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=1d001c2084cdf440bb768f79f1b3c936a3fa1460
---
modules/demux/mkv/matroska_segment.cpp | 1 +
modules/demux/mkv/mkv.cpp | 1 +
2 files changed, 2 insertions(+)
diff --git a/modules/demux/mkv/matroska_segment.cpp b/modules/demux/mkv/matroska_segment.cpp
index da5473f576..b022761ef3 100644
--- a/modules/demux/mkv/matroska_segment.cpp
+++ b/modules/demux/mkv/matroska_segment.cpp
@@ -30,6 +30,7 @@
#include <new>
#include <iterator>
+#include <limits>
namespace mkv {
diff --git a/modules/demux/mkv/mkv.cpp b/modules/demux/mkv/mkv.cpp
index 7a6b72a32e..4bd858ce04 100644
--- a/modules/demux/mkv/mkv.cpp
+++ b/modules/demux/mkv/mkv.cpp
@@ -31,6 +31,7 @@
#include "Ebml_parser.hpp"
#include <new>
+#include <limits>
extern "C" {
#include "../av1_unpack.h"
More information about the vlc-commits
mailing list