[Ffmpeg-devel] [RFC] av_seek_frame behaviour

Baptiste Coudurier baptiste.coudurier
Sun Apr 22 02:50:52 CEST 2007


Hi

Here is my problem:

I request a seek to a specific timestamp at almost the end of file (MXF 
file), seek fails because it cannot find a frame to seek to, and returns -1.

Then av_seek_frame calls av_seek_frame_generic, and seek at the 
beginning of the file and starts reading all packets, until the end 
(basically demuxing a 10Gb file), which I'd like to avoid.

I think about always returning after demuxer seek function, see patch.
It might be wrong, and missed some demuxers behaviour.

What do you guys think ?

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
checking for life_signs in -lkenny... no
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: seek.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070422/1737f396/attachment.txt>



More information about the ffmpeg-devel mailing list