[FFmpeg-devel] [PATCH] mov demux fails to seek all streams to beginning of file

John Stebbins stebbins
Mon Apr 26 18:35:34 CEST 2010

The scenario is an mov that has an edit list that causes the first
timestamp of the first stream to precede the first timestamp of other
streams in the file.  When attempting to seek back to the beginning of
the file with av_seek_frame, only the first streams position gets
updated.  The other streams positions remain where they were.

mov_read_seek first seeks to the requested position of the first stream
in the file (using mov_seek_stream).  Then it uses the timestamp of that
position to seek within all other streams using mov_seek_stream.  If
that timestamp is before the first timestamp of these other streams,
mov_seek_stream fails and leaves the position unchanged.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: A04-mov-seek.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100426/88b80382/attachment.asc>

More information about the ffmpeg-devel mailing list