[vlc-devel] commit: Used VLC_TS_INVALID/0 in vobsub demuxer. (Laurent Aimar )
git version control
git at videolan.org
Mon Dec 21 00:02:39 CET 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Dec 20 22:08:09 2009 +0100| [b4d7410f6728b5faac754f4908b068b853e61101] | committer: Laurent Aimar
Used VLC_TS_INVALID/0 in vobsub demuxer.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b4d7410f6728b5faac754f4908b068b853e61101
---
modules/demux/vobsub.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/demux/vobsub.c b/modules/demux/vobsub.c
index 4b902d3..ef5dd3a 100644
--- a/modules/demux/vobsub.c
+++ b/modules/demux/vobsub.c
@@ -408,7 +408,7 @@ static int Demux( demux_t *p_demux )
p_block->i_buffer = i_read;
/* pts */
- p_block->i_pts = tk.p_subtitles[tk.i_current_subtitle].i_start;
+ p_block->i_pts = VLC_TS_0 + tk.p_subtitles[tk.i_current_subtitle].i_start;
/* demux this block */
DemuxVobSub( p_demux, p_block );
@@ -701,7 +701,7 @@ static int DemuxVobSub( demux_t *p_demux, block_t *p_bk )
if( p_tk->p_es && p_tk->i_track_id == i_spu )
{
es_out_Send( p_demux->out, p_tk->p_es, p_pkt );
- p_bk->i_pts = 0; /*only first packet has a pts */
+ p_bk->i_pts = VLC_TS_INVALID; /*only first packet has a pts */
break;
}
}
More information about the vlc-devel
mailing list