Lines Matching defs:pos_limit
274 static int64_t read_timestamp(AVFormatContext *s, int stream_index, int64_t *ppos, int64_t pos_limit,
277 int64_t ts = read_timestamp(s, stream_index, ppos, pos_limit);
287 int64_t pos_min = 0, pos_max = 0, pos, pos_limit;
301 pos_limit = -1; // GCC falsely says it may be uninitialized.
332 pos_limit = pos_max - e->min_distance;
333 av_log(s, AV_LOG_TRACE, "using cached pos_max=0x%"PRIx64" pos_limit=0x%"PRIx64
334 " dts_max=%s\n", pos_max, pos_limit, av_ts2str(ts_max));
338 pos = ff_gen_search(s, stream_index, target_ts, pos_min, pos_max, pos_limit,
392 int64_t pos_min, int64_t pos_max, int64_t pos_limit,
421 pos_limit = pos_max;
432 while (pos_min < pos_limit) {
436 av_assert0(pos_limit <= pos_max);
439 int64_t approximate_keyframe_distance = pos_max - pos_limit;
446 pos = (pos_min + pos_limit) >> 1;
454 else if (pos > pos_limit)
455 pos = pos_limit;
458 // May pass pos_limit instead of -1.
468 pos_limit, start_pos, no_change);
474 pos_limit = start_pos - 1;