[vlc-commits] demux:mkv: constant strings should be constant

Steve Lhomme git at videolan.org
Wed Mar 21 15:08:16 CET 2018


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Mar 21 15:02:09 2018 +0100| [c012de25b3317eae307efccc8372a5414001de60] | committer: Hugo Beauzée-Luyssen

demux:mkv: constant strings should be constant

Third time's a charm

(cherry picked from commit 0d57dda3e9dbb3932fb2719b9fb18b213cb12c4d)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 modules/demux/mkv/util.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/mkv/util.cpp b/modules/demux/mkv/util.cpp
index 45a53fba99..d2bdaef555 100644
--- a/modules/demux/mkv/util.cpp
+++ b/modules/demux/mkv/util.cpp
@@ -386,8 +386,8 @@ block_t * packetize_wavpack( const mkv_track_t & tk, uint8_t * buffer, size_t  s
 
 void MkvTree_va( demux_t& demuxer, int i_level, const char* fmt, va_list args)
 {
-    static char indent[] = "|   ";
-    static char prefix[] = "+ ";
+    static const char indent[] = "|   ";
+    static const char prefix[] = "+ ";
     static int  const   indent_len = sizeof( indent ) - 1;
     static int  const   prefix_len = sizeof( prefix ) - 1;
 



More information about the vlc-commits mailing list