Lines Matching defs:pos
62 static int check(AVIOContext *pb, int64_t pos, uint32_t *header);
174 int64_t pos = avio_tell(s->pb);
175 fsize = fsize >= pos ? fsize - pos : 0;
440 sti->index_entries[i].pos += off;
452 int64_t pos;
455 pos = avio_tell(s->pb);
456 if (mp3->filesize > ID3v1_TAG_SIZE && pos < mp3->filesize)
457 size= FFMIN(size, mp3->filesize - pos);
474 static int check(AVIOContext *pb, int64_t pos, uint32_t *ret_header)
476 int64_t ret = avio_seek(pb, pos, SEEK_SET);
515 int64_t pos = target_pos + (dir > 0 ? i - SEEK_WINDOW/4 : -i);
519 if (pos < 0)
523 ret = check(s->pb, pos, NULL);
528 av_log(s, AV_LOG_ERROR, "Could not seek to %"PRId64".\n", pos);
532 if ((target_pos - pos)*dir <= 0 && FFABS(MIN_VALID/2-j) < score) {
533 candidate = pos;
536 pos += ret;
585 ie->pos = av_rescale(timestamp, filesize, st->duration) + si->data_offset;
590 best_pos = mp3_sync(s, ie->pos, flags);