Lines Matching refs:offset1
263 int64_t offset1; in avio_seek() local
284 offset1 = pos + (s->buf_ptr - s->buffer); in avio_seek()
286 return offset1; in avio_seek()
287 if (offset > INT64_MAX - offset1) in avio_seek()
289 offset += offset1; in avio_seek()
300 offset1 = offset - pos; // "offset1" is the relative offset from the beginning of s->buffer in avio_seek()
303 offset1 >= 0 && offset1 <= (s->write_flag ? s->buf_ptr_max - s->buffer : buffer_size)) { in avio_seek()
305 s->buf_ptr = s->buffer + offset1; in avio_seek()
307 offset1 <= buffer_size + short_seek) && in avio_seek()
308 !s->write_flag && offset1 >= 0 && in avio_seek()
316 } else if(!s->write_flag && offset1 < 0 && -offset1 < buffer_size>>1 && s->seek && offset > 0) { in avio_seek()