[Ffmpeg-devel] Bug report: seeking in mp3 files does not work

Måns Rullgård mans
Sat Mar 24 13:15:24 CET 2007


Thorsten Jordan <tjordan at macrosystem.de> writes:

> Hi,
>
> SVN checkout of march 22nd 2007.
> I can't seek in mp3 files any longer, older versions of ffmpeg can do
> that (September 2006). I can seek in AVIs, OGGs etc., but not mp3.
>
> I debugged a bit and found out, that when you call av_seek_frame
> libavformat seeks to begin of the file and then reads in the whole file,
> packet by packet, to find the right packet for the given pts.
>
> The bug is that all packets have the PKT_FLAG_KEY set to zero, i.e. no
> "key frames" were found although all audio-only-formats should have only
> key-frames (seen elsewhere in code).

It is not possible to start decoding at an arbitrary mp3 frame because
of the bit reservoir.

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list