[FFmpeg-devel] [PATCH] avformat/flacdec: support fast-seek

Hendrik Leppkes h.leppkes at gmail.com
Thu Sep 24 16:02:38 CEST 2015


On Thu, Sep 24, 2015 at 2:44 PM, Ching-Yi Chan <chingyichan.tw at 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


More information about the ffmpeg-devel mailing list