Seeking was slightly broken. The 4th patch seems to fix this (everything else is noise).
Note that ffmpeg can't correctly implement mp3 gapless audio if seeking is used. The xing toc is not precise enough. The only way to fix it is to do a full scan on the mp3 to index each frame (which in turn is not possible with the public API, because byte seeking is not supported and the parser would interfere anyway). But in this case, it even broke when seeking to the beginning. I'm still not sure if this patch is correct. wm4 (5): avformat, avcodec: log discard padding lavc: use correct type for printf() argument Revert "avformat/mp3dec: offset seek index to end of id3v2 tag" avformat/mp3dec: offset seek index to end of vbr headers avformat/mp3dec: alwas prefer xing toc for seeking if present libavcodec/utils.c | 6 +++--- libavformat/mp3dec.c | 27 ++++++++++++++++----------- libavformat/utils.c | 2 +- 3 files changed, 20 insertions(+), 15 deletions(-) -- 2.1.4 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel