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

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


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

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

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

 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 4b4c73e23c..7e2bd8a0ae 100644
--- a/modules/demux/mkv/matroska_segment.cpp
+++ b/modules/demux/mkv/matroska_segment.cpp
@@ -31,6 +31,7 @@
 
 #include <new>
 #include <iterator>
+#include <limits>
 
 matroska_segment_c::matroska_segment_c( demux_sys_t & demuxer, EbmlStream & estream, KaxSegment *p_seg )
     :segment(p_seg)
diff --git a/modules/demux/mkv/mkv.cpp b/modules/demux/mkv/mkv.cpp
index 9fecb52ed6..44e9fa805f 100644
--- a/modules/demux/mkv/mkv.cpp
+++ b/modules/demux/mkv/mkv.cpp
@@ -34,6 +34,7 @@
 #include "stream_io_callback.hpp"
 
 #include <new>
+#include <limits>
 
 extern "C" {
     #include "../av1_unpack.h"



More information about the vlc-commits mailing list