[vlc-devel] commit: Used VLC_TS_INVALID/0 in mkv demuxer. (Laurent Aimar )
git version control
git at videolan.org
Mon Dec 21 00:02:42 CET 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Dec 20 23:05:56 2009 +0100| [4dcc2c422b9304d7ad2fd7df6885801d805a883f] | committer: Laurent Aimar
Used VLC_TS_INVALID/0 in mkv demuxer.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4dcc2c422b9304d7ad2fd7df6885801d805a883f
---
modules/demux/mkv/mkv.cpp | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/modules/demux/mkv/mkv.cpp b/modules/demux/mkv/mkv.cpp
index 9729779..4508293 100644
--- a/modules/demux/mkv/mkv.cpp
+++ b/modules/demux/mkv/mkv.cpp
@@ -580,7 +580,7 @@ static void BlockDecode( demux_t *p_demux, KaxBlock *block, KaxSimpleBlock *simp
{
if( tk->b_dts_only )
{
- p_block->i_pts = 0;
+ p_block->i_pts = VLC_TS_INVALID;
p_block->i_dts = i_pts;
}
else
@@ -604,15 +604,15 @@ msg_Dbg( p_demux, "block i_dts: %"PRId64" / i_pts: %"PRId64, p_block->i_dts, p_b
}
/* FIXME remove when VLC_TS_INVALID work is done */
- if( i == 0 || p_block->i_dts > 0 )
- p_block->i_dts++;
- if( !tk->b_dts_only && ( i == 0 || p_block->i_pts ) )
- p_block->i_pts++;
+ if( i == 0 || p_block->i_dts > VLC_TS_INVALID )
+ p_block->i_dts += VLC_TS_0;
+ if( !tk->b_dts_only && ( i == 0 || p_block->i_pts > VLC_TS_INVALID ) )
+ p_block->i_pts += VLC_TS_0;
es_out_Send( p_demux->out, tk->p_es, p_block );
/* use time stamp only for first block */
- i_pts = 0;
+ i_pts = VLC_TS_INVALID;
}
}
@@ -865,8 +865,8 @@ static int Demux( demux_t *p_demux)
else
p_sys->i_pts = (p_sys->i_chapter_time + block->GlobalTimecode()) / (mtime_t) 1000;
- /* FIXME remove the +1 when VLC_TS_INVALID work is done */
- es_out_Control( p_demux->out, ES_OUT_SET_PCR, p_sys->i_pts+1 );
+ /* */
+ es_out_Control( p_demux->out, ES_OUT_SET_PCR, VLC_TS_0 + p_sys->i_pts );
if( p_sys->i_pts >= p_sys->i_start_pts )
{
More information about the vlc-devel
mailing list