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,17 +674,21 @@ static void Ogg_DecodePacket( demux_t *p_demux,
i_interpolated_pts = p_stream->i_interpolated_pcr;
Ogg_UpdatePCR( p_stream, p_oggpacket );
if( p_stream->i_pcr >= 0 )
/* SPU streams are typically discontinuous, do not mind large gaps */
if( p_stream->fmt.i_cat != SPU_ES )
{
/* This is for streams where the granulepos of the header packets
* doesn't match these of the data packets (eg. ogg web radios). */
if( p_stream->i_previous_pcr == 0 &&
p_stream->i_pcr > 3 * DEFAULT_PTS_DELAY )
if( p_stream->i_pcr >= 0 )
{
es_out_Control( p_demux->out, ES_OUT_RESET_PCR );
/* This is for streams where the granulepos of the header packets
* doesn't match these of the data packets (eg. ogg web radios). */
if( p_stream->i_previous_pcr == 0 &&
p_stream->i_pcr > 3 * DEFAULT_PTS_DELAY )
{
es_out_Control( p_demux->out, ES_OUT_RESET_PCR );
/* Call the pace control */
es_out_Control( p_demux->out, ES_OUT_SET_PCR, p_stream->i_pcr );
/* Call the pace control */
es_out_Control( p_demux->out, ES_OUT_SET_PCR, p_stream->i_pcr );
}
}
}
......
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