<div dir="ltr">Hi friends<div><br></div><div>Here I have a question about av_seek_frame.</div><div><br></div><div>For example if I have a video stream of time stamps 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10. and only frame at 0 is a key frame.</div>
<div><br></div><div>if I call av_seek_frame(x,x,5, AVSEEK_FLAG_BACKWARD | AVSEEK_FLAG_ANY) and then av_read_frame, the first frame I get will be frame 6, is this correct?</div><div><br></div><div>then if I call av_seek_frame(x, x, 5, AVSEEK_FLAG_BACKWARD) and then av_read_frame, then the first frame I get will be frame 1, is this correct?</div>
<div><br></div><div>and if both can seek to a frame and first one can get a frame quicker, in what circumstance should I use the second one?</div><div><br></div><div>Thanks</div></div>