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

Michael Niedermayer michaelni
Tue May 25 20:57:01 CEST 2010

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

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Opposition brings concord. Out of discord comes the fairest harmony.
-- Heraclitus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100525/809c5ab6/attachment.pgp>

More information about the ffmpeg-devel mailing list