[vlc-commits] mp4: fix format string
Rémi Denis-Courmont
git at videolan.org
Sat Oct 11 09:15:23 CEST 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct 11 10:12:24 2014 +0300| [0d881ef1d5c711e96236c97aa1e8d196fda7e9d7] | committer: Rémi Denis-Courmont
mp4: fix format string
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0d881ef1d5c711e96236c97aa1e8d196fda7e9d7
---
modules/demux/mp4/libmp4.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index 17aae0d..e497541 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -4033,13 +4033,15 @@ static void MP4_BoxDumpStructure_Internal( stream_t *s,
}
if( MP4_BOX_TYPE_ASCII() )
snprintf( &str[i_level * 4], sizeof(str) - 4*i_level,
- "+ %4.4s size %"PRIu64" offset %ld%s",
- (char*)&p_box->i_type, p_box->i_size, p_box->i_pos,
+ "+ %4.4s size %"PRIu64" offset %ju%s",
+ (char*)&p_box->i_type, p_box->i_size,
+ (uintmax_t)p_box->i_pos,
p_box->e_flags & BOX_FLAG_INCOMPLETE ? " (\?\?\?\?)" : "" );
else
snprintf( &str[i_level * 4], sizeof(str) - 4*i_level,
- "+ c%3.3s size %"PRIu64" offset %ld%s",
- (char*)&p_box->i_type+1, p_box->i_size, p_box->i_pos,
+ "+ c%3.3s size %"PRIu64" offset %ju%s",
+ (char*)&p_box->i_type+1, p_box->i_size,
+ (uintmax_t)p_box->i_pos,
p_box->e_flags & BOX_FLAG_INCOMPLETE ? " (\?\?\?\?)" : "" );
msg_Dbg( s, "%s", str );
}
More information about the vlc-commits
mailing list