[vlc-devel] [PATCH] avformat: remove obsolete workaround from	d1bf1bcf
    Rafaël Carré 
    funman at videolan.org
       
    Wed Jul 10 21:26:38 CEST 2013
    
    
  
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
    
    
More information about the vlc-devel
mailing list