[Ffmpeg-devel] [PATCH] Fix broken flv seeking

Michael Niedermayer michaelni
Sun Dec 17 13:59:43 CET 2006


On Sun, Dec 17, 2006 at 09:48:52PM +0900, nazo wrote:
> Hi,
> The attached patch fixes flv demuxer seeking. I tested with ffplay and vlc.

* this duplicates alot of code
* this simply reads through the whole file = O(n) complexity
* its identical to av_build_index_raw() just not as generic
* implement AVCodec.read_timestamp() or write your own O(log n) seek
  if you prefer and its small simple and clean

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

When the tyrant has disposed of foreign enemies by conquest or treaty, and
there is nothing more to fear from them, then he is always stirring up
some war or other, in order that the people may require a leader. -- Plato

More information about the ffmpeg-devel mailing list