[vlc-commits] mp4: reduce space in debug-tree
Jean-Baptiste Kempf
git at videolan.org
Thu Aug 25 01:30:21 CEST 2011
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Aug 25 00:15:32 2011 +0200| [3c8b5b9c68ab96008c97d46d3eb09bc77bd02348] | committer: Jean-Baptiste Kempf
mp4: reduce space in debug-tree
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3c8b5b9c68ab96008c97d46d3eb09bc77bd02348
---
modules/demux/mp4/libmp4.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index b0b1328..95d8154 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -3097,20 +3097,20 @@ static void __MP4_BoxDumpStructure( stream_t *s,
unsigned int i;
char str[512];
- if( i_level >= (sizeof(str) - 1)/5 )
+ if( i_level >= (sizeof(str) - 1)/4 )
return;
memset( str, ' ', sizeof(str) );
for( i = 0; i < i_level; i++ )
{
- str[i*5] = '|';
+ str[i*4] = '|';
}
if( MP4_BOX_TYPE_ASCII() )
- snprintf( &str[i_level * 5], sizeof(str) - 5*i_level,
+ snprintf( &str[i_level * 4], sizeof(str) - 4*i_level,
"+ %4.4s size %d",
(char*)&p_box->i_type, (uint32_t)p_box->i_size );
else
- snprintf( &str[i_level * 5], sizeof(str) - 5*i_level,
+ snprintf( &str[i_level * 4], sizeof(str) - 4*i_level,
"+ c%3.3s size %d",
(char*)&p_box->i_type+1, (uint32_t)p_box->i_size );
msg_Dbg( s, "%s", str );
More information about the vlc-commits
mailing list