[FFmpeg-devel] Seeking in mp3 files doesn't work

Thorsten Jordan tjordan
Thu Sep 6 10:06:33 CEST 2007

Andreas ?man schrieb:
> Hi
>> just downloaded the latest svn snapshot, made a clean compile, and run
>> ffplay with various mp3s i have, and i can't seek because the
>> computation of the duration does not work.
>> AVFormatContext->duration is AV_NO_PTS_VALUE or whatever (-2^62).
> as of r10408 (auch!.. it's soo hot), this works again
I have tried it and it does NOT work. Which is obvious why, as the
duration of the AVStream is still invalid, because no start time is set
in libavformat/mp3.c

Is this intentional that AVStream->start_time is set to zero on most
other demuxers but not for mp2/3 ? If so, why? Since an mp2/mp3 file has
no timestamps of its own, a start time of 0 seems reasonable.

Greetings, Thorsten

More information about the ffmpeg-devel mailing list