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

Rafaël Carré funman at videolan.org
Wed Jul 10 21:58:26 CEST 2013


No clue, I was kinda hoping since it's an old workaround all supported
versions would be ok but it'll need testing.

Le 10/07/2013 21:46, Jean-Baptiste Kempf a écrit :
> 
> 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 );



More information about the vlc-devel mailing list