[vlc-commits] demux:mkv: fix log display
Steve Lhomme
git at videolan.org
Wed Mar 21 15:08:12 CET 2018
vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Mar 21 11:54:29 2018 +0100| [b91b068d2c3b23c15e07a7d4e377db7a0ae87b66] | committer: Hugo Beauzée-Luyssen
demux:mkv: fix log display
At least on my machine string are padding with an 8 byte alignment.
from 50eec8a480700449591d7f0d7c31a36772973291
(cherry picked from commit 0b746a9e05ee28b8ce8b69c6c3db902f05a88e56)
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=b91b068d2c3b23c15e07a7d4e377db7a0ae87b66
---
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 ae9315392d..fcb4064682 100644
--- a/modules/demux/mkv/util.cpp
+++ b/modules/demux/mkv/util.cpp
@@ -388,8 +388,8 @@ void MkvTree_va( demux_t& demuxer, int i_level, const char* fmt, va_list args)
{
static char const * indent = "| ";
static char const * prefix = "+ ";
- static int const indent_len = sizeof( indent );
- static int const prefix_len = sizeof( prefix );
+ static int const indent_len = strlen( indent );
+ static int const prefix_len = strlen( prefix );
char fixed_buffer[256] = {};
size_t const static_len = sizeof( fixed_buffer );
More information about the vlc-commits
mailing list