Lines Matching refs:max_ts
2242 int64_t min_ts = INT64_MIN, max_ts = INT64_MAX;
2244 max_ts = timestamp;
2247 return avformat_seek_file(s, stream_index, min_ts, timestamp, max_ts,
2260 int64_t ts, int64_t max_ts, int flags)
2262 if (min_ts > ts || max_ts < ts)
2281 max_ts = av_rescale_rnd(max_ts, time_base.den,
2287 ts, max_ts, flags);
2301 int dir = (ts - (uint64_t)min_ts > (uint64_t)max_ts - ts ? AVSEEK_FLAG_BACKWARD : 0);
2303 if (ret<0 && ts != min_ts && max_ts != ts) {
2304 ret = av_seek_frame(s, stream_index, dir ? max_ts : min_ts, flags | dir);