[vlc-commits] demux: mp4: ifdef fragment debug info
Francois Cartegnie
git at videolan.org
Tue Oct 21 21:03:28 CEST 2014
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Oct 21 21:01:44 2014 +0200| [cea540343e4a44410219054fcd74b7fb4001ee17] | committer: Francois Cartegnie
demux: mp4: ifdef fragment debug info
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cea540343e4a44410219054fcd74b7fb4001ee17
---
modules/demux/mp4/mp4.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 611e000..f12a3d5 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -873,14 +873,21 @@ static int Open( vlc_object_t * p_this )
}
}
+#ifdef MP4_VERBOSE
+ mtime_t i_total_duration = 0;
mp4_fragment_t *p_fragment = &p_sys->moovfragment;
while ( p_fragment )
{
- msg_Dbg( p_demux, "fragment offset %"PRId64", data %"PRIu64"<->%"PRIu64", duration %"PRId64,
+ if ( p_fragment != &p_sys->moovfragment || p_fragment->i_chunk_range_max_offset )
+ i_total_duration += CLOCK_FREQ * p_fragment->i_duration / p_sys->i_timescale;
+ msg_Dbg( p_demux, "fragment offset %"PRId64", data %"PRIu64"<->%"PRIu64", "
+ "duration %"PRId64" @%"PRId64,
p_fragment->p_moox->i_pos, p_fragment->i_chunk_range_min_offset,
- p_fragment->i_chunk_range_max_offset, CLOCK_FREQ * p_fragment->i_duration / p_sys->i_timescale );
+ p_fragment->i_chunk_range_max_offset,
+ CLOCK_FREQ * p_fragment->i_duration / p_sys->i_timescale, i_total_duration );
p_fragment = p_fragment->p_next;
}
+#endif
/* */
LoadChapter( p_demux );
More information about the vlc-commits
mailing list