[Libav-user] about av_seek_frame

wm4 nfxjfg at googlemail.com
Thu May 29 15:27:38 CEST 2014

On Thu, 29 May 2014 11:49:07 +1000
YIRAN LI <mrfun.china at gmail.com> wrote:

> Hi friends, here I have a question for av_seek_frame function.
> Say if I have a stream whose duration is 10s, and
> avformatcontext.start_time != 0 (let's assume it's 5s).
> So now if I want to seek to the start of the video,
> should I call av_seek_frame(0) or av_seek_frame(5s) ?

Seeking uses timestamps as stored in the file, so you should use the
start_time value.

More information about the Libav-user mailing list