Lines Matching defs:pos_max
200 int64_t pos_min, pos_max;
206 pos_max = ffm->file_size - 2 * FFM_PACKET_SIZE;
210 pts = get_dts(s, pos_max);
219 pts = get_dts(s, pos_max);
226 newpos = ((pos_max + pos_min) / (2 * FFM_PACKET_SIZE)) * FFM_PACKET_SIZE;
234 pos_max = newpos;
240 ffm->write_index += pos_max;
457 int64_t pos_min, pos_max, pos;
465 pos_max = ffm->file_size - FFM_PACKET_SIZE;
466 while (pos_min <= pos_max) {
468 pts_max = get_dts(s, pos_max);
470 pos1 = (double)(pos_max - pos_min) * (double)(wanted_pts - pts_min) /
475 else if (pos >= pos_max)
476 pos = pos_max;
482 pos_max = pos - FFM_PACKET_SIZE;
487 pos = (flags & AVSEEK_FLAG_BACKWARD) ? pos_min : pos_max;