Commit 8f92973b authored by Vincent Penquerc'h's avatar Vincent Penquerc'h Committed by Laurent Aimar

do not mind large time discontinuities in SPU streams these are to be...

do not mind large time discontinuities in SPU streams these are to be expected, so do not reset timing
Signed-off-by: default avatarLaurent Aimar <fenrir@videolan.org>
parent eb4acbec
...@@ -674,6 +674,9 @@ static void Ogg_DecodePacket( demux_t *p_demux, ...@@ -674,6 +674,9 @@ static void Ogg_DecodePacket( demux_t *p_demux,
i_interpolated_pts = p_stream->i_interpolated_pcr; i_interpolated_pts = p_stream->i_interpolated_pcr;
Ogg_UpdatePCR( p_stream, p_oggpacket ); Ogg_UpdatePCR( p_stream, p_oggpacket );
/* SPU streams are typically discontinuous, do not mind large gaps */
if( p_stream->fmt.i_cat != SPU_ES )
{
if( p_stream->i_pcr >= 0 ) if( p_stream->i_pcr >= 0 )
{ {
/* This is for streams where the granulepos of the header packets /* This is for streams where the granulepos of the header packets
...@@ -687,6 +690,7 @@ static void Ogg_DecodePacket( demux_t *p_demux, ...@@ -687,6 +690,7 @@ static void Ogg_DecodePacket( demux_t *p_demux,
es_out_Control( p_demux->out, ES_OUT_SET_PCR, p_stream->i_pcr ); es_out_Control( p_demux->out, ES_OUT_SET_PCR, p_stream->i_pcr );
} }
} }
}
if( p_stream->fmt.i_codec != VLC_FOURCC( 'v','o','r','b' ) && if( p_stream->fmt.i_codec != VLC_FOURCC( 'v','o','r','b' ) &&
p_stream->fmt.i_codec != VLC_FOURCC( 's','p','x',' ' ) && p_stream->fmt.i_codec != VLC_FOURCC( 's','p','x',' ' ) &&
......
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