Lines Matching refs:pos_limit
1883 static int64_t ff_read_timestamp(AVFormatContext *s, int stream_index, int64_t *ppos, int64_t pos_limit,
1886 int64_t ts = read_timestamp(s, stream_index, ppos, pos_limit);
1896 int64_t av_uninit(pos_min), av_uninit(pos_max), pos, pos_limit;
1909 pos_limit = -1; // GCC falsely says it may be uninitialized.
1939 pos_limit = pos_max - e->min_distance;
1940 av_dlog(s, "using cached pos_max=0x%"PRIx64" pos_limit=0x%"PRIx64
1941 " dts_max=%s\n", pos_max, pos_limit, av_ts2str(ts_max));
1945 pos = ff_gen_search(s, stream_index, target_ts, pos_min, pos_max, pos_limit,
1999 int64_t pos_min, int64_t pos_max, int64_t pos_limit,
2027 pos_limit = pos_max;
2038 pos_limit = pos_min;
2041 while (pos_min < pos_limit) {
2045 assert(pos_limit <= pos_max);
2048 int64_t approximate_keyframe_distance = pos_max - pos_limit;
2055 pos = (pos_min + pos_limit) >> 1;
2063 else if (pos > pos_limit)
2064 pos = pos_limit;
2067 // May pass pos_limit instead of -1.
2077 pos_limit, start_pos, no_change);
2084 pos_limit = start_pos - 1;