[FFmpeg-devel] [PATCH] Make sure AVFormatContext->start_time is initialized after the first patch

Baptiste Coudurier baptiste.coudurier
Fri May 28 22:55:48 CEST 2010


On 05/25/2010 11:57 AM, Michael Niedermayer wrote:
> On Tue, May 25, 2010 at 12:54:50AM +0300, Martin Storsj? wrote:
>> Hi,
>>
>> When discussing a ffserver patch with Baptiste, he insisted that if
>> AVFormatContext->start_time isn't initialized after the first packet, it's
>> a bug that should be fixed within libavformat, instead of handled in
>> ffserver.
>>
>> This attached patch is one way of solving it, although I'm not sure if
>> this is the correct way.
>
> The problem might be that ffserver calls av_seek_frame()
> with that the first packet demuxed might no longer correspond to the
> first packet.
> thus i think its not unreasonable if lavf doesnt set start_time to the
> first dts/pts once seeking has happened

Hummm, av_find_stream_info should set the start_time however.
Isn't av_find_stream_info called ?

-- 
Baptiste COUDURIER
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org



More information about the ffmpeg-devel mailing list