[vlc-commits] demux:mkv: fix log display
Steve Lhomme
git at videolan.org
Wed Mar 21 12:26:55 CET 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Mar 21 11:54:29 2018 +0100| [0b746a9e05ee28b8ce8b69c6c3db902f05a88e56] | committer: Steve Lhomme
demux:mkv: fix log display
At least on my machine string are padding with an 8 byte alignment.
from 50eec8a480700449591d7f0d7c31a36772973291
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0b746a9e05ee28b8ce8b69c6c3db902f05a88e56
---
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 e41fd86512..e01ab6db07 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