Revision 7a6fe01f libavformat/aviobuf.c

View differences:

libavformat/aviobuf.c
153 153
        /* can do the seek inside the buffer */
154 154
        s->buf_ptr = s->buffer + offset1;
155 155
    } else if(s->is_streamed && !s->write_flag && offset1 >= 0 &&
156
              (offset1 < (s->buf_end - s->buffer) + (1<<16) || force)) {
156
              (whence != SEEK_END || force)) {
157 157
        while(s->pos < offset && !s->eof_reached)
158 158
            fill_buffer(s);
159 159
        if (s->eof_reached)

Also available in: Unified diff