Lines Matching defs:offset
67 static int dss_read_metadata_date(AVFormatContext *s, unsigned int offset,
75 avio_seek(pb, offset, SEEK_SET);
90 static int dss_read_metadata_string(AVFormatContext *s, unsigned int offset,
97 avio_seek(pb, offset, SEEK_SET);
206 int read_size, ret, offset = 0, buff_offset = 0;
232 offset = ctx->counter;
238 ret = avio_read(s->pb, pkt->data + offset + buff_offset,
239 read_size - offset);
240 if (ret < read_size - offset)
259 int size, byte, ret, offset;
265 /* We make one byte-step here. Don't forget to add offset. */
281 offset = 1;
288 ret = avio_read(s->pb, pkt->data + offset,
293 offset += ctx->counter;
300 ret = avio_read(s->pb, pkt->data + offset, size);
323 int offset;
341 offset = 2*header[1] + 2*ctx->swap;
342 if (offset < DSS_AUDIO_BLOCK_HEADER_SIZE)
344 if (offset == DSS_AUDIO_BLOCK_HEADER_SIZE) {
346 offset = avio_skip(s->pb, -DSS_AUDIO_BLOCK_HEADER_SIZE);
348 ctx->counter = DSS_BLOCK_SIZE - offset;
349 offset = avio_skip(s->pb, offset - DSS_AUDIO_BLOCK_HEADER_SIZE);