Lines Matching defs:pos_max
287 int64_t pos_min = 0, pos_max = 0, pos, pos_limit;
330 pos_max = e->pos;
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,
359 int64_t pos_max = filesize - 1;
361 limit = pos_max;
362 pos_max = FFMAX(0, (pos_max) - step);
364 &pos_max, limit, read_timestamp_func);
371 int64_t tmp_pos = pos_max + 1;
376 av_assert0(tmp_pos > pos_max);
378 pos_max = tmp_pos;
386 *pos = pos_max;
392 int64_t pos_min, int64_t pos_max, int64_t pos_limit,
419 if ((ret = ff_find_last_ts(s, stream_index, &ts_max, &pos_max, read_timestamp_func)) < 0)
421 pos_limit = pos_max;
426 return pos_max;
434 "pos_min=0x%"PRIx64" pos_max=0x%"PRIx64" dts_min=%s dts_max=%s\n",
435 pos_min, pos_max, av_ts2str(ts_min), av_ts2str(ts_max));
436 av_assert0(pos_limit <= pos_max);
439 int64_t approximate_keyframe_distance = pos_max - pos_limit;
441 pos = av_rescale(target_ts - ts_min, pos_max - pos_min,
460 if (pos == pos_max)
466 pos_min, pos, pos_max,
475 pos_max = pos;
484 pos = (flags & AVSEEK_FLAG_BACKWARD) ? pos_min : pos_max;
502 int64_t pos_min, pos_max;
505 pos_max = avio_size(s->pb) - 1;
509 else if (pos > pos_max)
510 pos = pos_max;