Commit b4d7410f authored by Laurent Aimar's avatar Laurent Aimar

Used VLC_TS_INVALID/0 in vobsub demuxer.

parent bd0c2884
...@@ -408,7 +408,7 @@ static int Demux( demux_t *p_demux ) ...@@ -408,7 +408,7 @@ static int Demux( demux_t *p_demux )
p_block->i_buffer = i_read; p_block->i_buffer = i_read;
/* pts */ /* 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 */ /* demux this block */
DemuxVobSub( p_demux, p_block ); DemuxVobSub( p_demux, p_block );
...@@ -701,7 +701,7 @@ static int DemuxVobSub( demux_t *p_demux, block_t *p_bk ) ...@@ -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 ) if( p_tk->p_es && p_tk->i_track_id == i_spu )
{ {
es_out_Send( p_demux->out, p_tk->p_es, p_pkt ); 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; break;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment