[vlc-devel] [PATCH] avformat: remove obsolete workaround from d1bf1bcf

Jean-Baptiste Kempf jb at videolan.org
Wed Jul 10 21:46:36 CEST 2013


No need for AVFORMAT_VERSION ifdef?

On 10 Jul, Rafaël Carré wrote :
> Sample: ftp://streams.videolan.org/issues/2590/out.flv
> ---
>  modules/demux/avformat/demux.c | 7 -------
>  1 file changed, 7 deletions(-)
> 
> diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
> index d2e17cf..a859123 100644
> --- a/modules/demux/avformat/demux.c
> +++ b/modules/demux/avformat/demux.c
> @@ -663,13 +663,6 @@ static int Demux( demux_t *p_demux )
>              p_stream->time_base.num /
>              p_stream->time_base.den;
>  
> -    if( pkt.dts != (int64_t)AV_NOPTS_VALUE && pkt.dts == pkt.pts &&
> -        p_stream->codec->codec_type == AVMEDIA_TYPE_VIDEO )
> -    {
> -        /* Add here notoriously bugged file formats/samples regarding PTS */
> -        if( !strcmp( p_sys->fmt->name, "flv" ) )
> -            p_frame->i_pts = VLC_TS_INVALID;
> -    }
>  #ifdef AVFORMAT_DEBUG
>      msg_Dbg( p_demux, "tk[%d] dts=%"PRId64" pts=%"PRId64,
>               pkt.stream_index, p_frame->i_dts, p_frame->i_pts );
> -- 
> 1.8.1.2
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel

-- 
Best regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device



More information about the vlc-devel mailing list