Is it acceptable to provide an option for different methods between accuracy seek and fast but inaccurate.
For example, mp3dec having "usetoc" option to seek by toc. 2015-09-24 22:02 GMT+08:00 Hendrik Leppkes <h.lepp...@gmail.com>: > On Thu, Sep 24, 2015 at 2:44 PM, Ching-Yi Chan <chingyichan...@gmail.com> > wrote: > > I found the generic seek will invoke the flac_read_timestamp function. > > It read exta packet will slow down the seek time > > https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/flacdec.c#L224 > > > > > > It does that to get to an accurate seek position. We do not have a way > to tell avformat to do a fast and inaccurate seek, and accuracy seems > more important to me, if the format allows for it. > Reading the index would however still allow this seek function to be > faster than it is now, since it knows the points in the index as > boundary points. > > - Hendrik > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel > _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel