Lines Matching defs:offset
107 int64_t offset; // offset of the current object
110 int64_t first_packet_offset; // packet offset
122 uint64_t sub_header_offset; // offset of subpayload header
126 int64_t packet_offset; // offset of the current packet inside Data Object
144 static int detect_unknown_subobject(AVFormatContext *s, int64_t offset, int64_t size);
164 static void align_position(AVIOContext *pb, int64_t offset, uint64_t size)
166 if (size < INT64_MAX - offset && avio_tell(pb) != offset + size)
167 avio_seek(pb, offset + size, SEEK_SET);
257 align_position(pb, asf->offset, size);
420 align_position(pb, asf->offset, size);
504 align_position(pb, asf->offset, size);
532 align_position(pb, asf->offset, size);
639 avio_skip(pb, 8); // skip the time offset
649 align_position(pb, asf->offset, size);
705 align_position(pb, asf->offset, size);
778 align_position(pb, asf->offset, size);
789 align_position(pb, asf->offset, size);
814 align_position(pb, asf->offset, size);
818 // returns data object offset when reading this object for the first time
828 asf->data_offset = asf->offset;
850 align_position(pb, asf->offset, asf->data_size);
864 int64_t offset;
886 offset = avio_skip(pb, 2);
887 if (offset < 0) {
889 return offset;
899 align_position(pb, asf->offset, size);
1078 "asf->packet_size %"PRIu32", offset %"PRId64".\n",
1108 int64_t offset;
1125 offset = avio_tell(pb);
1129 size = asf->packet_size_internal - offset + asf->packet_offset - asf->pad_len;
1131 size = asf->packet_size - offset + asf->packet_offset - asf->pad_len;
1134 "Error: invalid data packet size, offset %"PRId64".\n",
1426 asf->offset = 0;
1447 * where the pos (position) is the offset inside the Data Object.
1449 * to find the closest packet offset after this position. If this packet
1452 * asf_read_timestamp upgrades pos to the packet beginning offset and
1489 // pkt_offset is the offset of the first fragment within it.
1557 static int detect_unknown_subobject(AVFormatContext *s, int64_t offset, int64_t size)
1565 if (offset > INT64_MAX - size)
1568 while (avio_tell(pb) <= offset + size) {
1569 if (avio_tell(pb) == asf->offset)
1571 asf->offset = avio_tell(pb);
1614 if (avio_tell(pb) == asf->offset)
1616 asf->offset = avio_tell(pb);
1625 asf->unknown_offset = asf->offset;
1631 align_position(pb, asf->offset, size);