AVInputFormat.read_seek2

Seek to timestamp ts. Seeking will be done so that the point from which all active streams can be presented successfully will be closest to ts and within min/max_ts. Active streams are all streams that have AVStream.discard < AVDISCARD_ALL.

struct AVInputFormat
int function(AVFormatContext* s, int stream_index, long min_ts, long ts, long max_ts, int flags) read_seek2;

Meta