Lines Matching defs:offset
1065 avio_read(pb, output, 8); // go to offset 8, absolute position 0x251
1067 avio_read(pb, output, 4); // go to offset 4, absolute position 0x28d
1293 static int search_frag_moof_offset(MOVFragmentIndex *frag_index, int64_t offset)
1300 frag_index->item[frag_index->nb_items - 1].moof_offset < offset)
1309 if (moof_offset >= offset)
1311 if (moof_offset <= offset)
1386 static int update_frag_index(MOVContext *c, int64_t offset)
1393 index = search_frag_moof_offset(&c->frag_index, offset);
1395 c->frag_index.item[index].moof_offset == offset)
1398 // offset is not yet in frag index.
1399 // Insert new item at index (sorted by moof offset)
1437 item->moof_offset = offset;
1480 av_log(c->fc, AV_LOG_TRACE, "moof offset %"PRIx64"\n", c->fragment.moof_offset);
3176 av_log(c->fc, AV_LOG_WARNING, "Too large sample offset %u in stts entry %u with count %u in st:%d. Clipping to 1.\n",
3538 // If dts_shift > 0, then all the index timestamps will have to be offset by
4345 av_log(mov->fc, AV_LOG_ERROR, "Current offset %"PRId64" or sample size %u is too large\n",
4364 av_log(mov->fc, AV_LOG_TRACE, "AVIndex stream %d, sample %u, offset %"PRIx64", dts %"PRId64", "
4478 av_log(mov->fc, AV_LOG_TRACE, "AVIndex stream %d, chunk %u, offset %"PRIx64", dts %"PRId64", "
5162 uint64_t offset;
5269 offset = frag->base_data_offset + data_offset;
5374 sti->index_entries[index_entry_pos].pos = offset;
5384 av_log(c->fc, AV_LOG_TRACE, "AVIndex stream %d, sample %d, offset %"PRIx64", dts %"PRId64", "
5386 index_entry_pos, offset, dts, sample_size, distance, keyframe);
5393 offset += sample_size;
5449 frag->implicit_offset = offset;
5461 int64_t offset = av_sat_add64(avio_tell(pb), atom.size), pts, timestamp;
5506 if (av_sat_add64(offset, offadd) != offset + (uint64_t)offadd)
5509 offset += (uint64_t)offadd;
5529 index = update_frag_index(c, offset);
5534 if (av_sat_add64(offset, size) != offset + (uint64_t)size ||
5538 offset += size;
5547 is_complete = offset == stream_size;
5559 if (offset == stream_size - c->mfra_size)
6591 unsigned int alloc_size = 0, offset = 0;
6592 while (offset < size) {
6596 unsigned int to_read = FFMIN(size, alloc_size) - offset;
6603 if (avio_read(pb, buffer + offset, to_read) != to_read) {
6607 offset += to_read;
7497 otherwise currently identical. Data after output gain at offset 16
8171 int64_t offset;
8177 offset = 0;
8181 /* ignore invalid offset */
8182 if ((offset + 8ULL) > (unsigned int)p->buf_size)
8184 size = AV_RB32(p->buf + offset);
8185 if (size == 1 && offset + 16 <= (unsigned int)p->buf_size) {
8186 size = AV_RB64(p->buf+offset + 8);
8189 size = p->buf_size - offset;
8192 offset += 4;
8195 tag = AV_RL32(p->buf + offset + 4);
8199 moov_offset = offset + 4;
8205 ( AV_RL32(p->buf + offset + 8) == MKTAG('j','p','2',' ')
8206 || AV_RL32(p->buf + offset + 8) == MKTAG('j','p','x',' ')
8207 || AV_RL32(p->buf + offset + 8) == MKTAG('j','x','l',' ')
8230 if (size > INT64_MAX - offset)
8232 offset += size;
8237 offset = moov_offset;
8239 while (offset < (p->buf_size - 16)) { /* Sufficient space */
8241 if (AV_RL32(p->buf + offset ) == MKTAG('h','d','l','r') &&
8242 AV_RL32(p->buf + offset + 8) == MKTAG('m','h','l','r') &&
8243 AV_RL32(p->buf + offset + 12) == MKTAG('M','P','E','G')) {
8252 offset += 2;
8607 int64_t time, offset;
8617 offset = avio_rb64(f);
8620 offset = avio_rb32(f);
8626 index = update_frag_index(mov, offset);
8943 av_log(mov->fc, AV_LOG_ERROR, "root atom offset 0x%"PRIx64": partial file\n", target);
8966 av_log(s, AV_LOG_TRACE, "read fragments, offset 0x%"PRIx64"\n", avio_tell(s->pb));
9046 av_log(mov->fc, AV_LOG_ERROR, "stream %d, offset 0x%"PRIx64": partial file\n",
9265 // Here we consider timestamp to be PTS, hence try to offset it so that we