[vlc-devel] [PATCH] when checking for a large gap in timestamp, ignore kate streams

Laurent Aimar fenrir at via.ecp.fr
Fri Nov 7 12:35:43 CET 2008


On Wed, Nov 05, 2008, ogg.k.ogg.k at googlemail.com wrote:
> From 0ba452a992129a7d6012004893b19982d9137f09 Mon Sep 17 00:00:00 2001
> From: Vincent Penquerc'h <ogg.k.ogg.k at googlemail.com>
> Date: Tue, 4 Nov 2008 15:54:48 +0000
> Subject: [PATCH] when checking for a large gap in timestamp, ignore kate streams
>   as they are discontinuous and such gaps are normal
>  note that CMML is also discontinuous, and would probably need
>   the same treatment, but I have no test files to check
> 
> ---
>  modules/demux/ogg.c |   21 +++++++++++++--------
>  1 files changed, 13 insertions(+), 8 deletions(-)
> 
> diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
> index db22e7c..7f905fb 100644
> --- a/modules/demux/ogg.c
> +++ b/modules/demux/ogg.c
> @@ -674,17 +674,22 @@ 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 )
> +    /* Kate is a discontinuous codec, do not mind large gaps */
> +    /* TODO: CMML would *probably* need testing here too, if someone has test files */
> +    if( p_stream->fmt.i_codec != VLC_FOURCC( 'k','a','t','e' ) )
 A better idea could be to check on p_stream->fmt.i_cat to ignore SPU_ES, no ?

-- 
fenrir



More information about the vlc-devel mailing list