Revision 493f54ad libavformat/aviobuf.c

View differences:

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

Also available in: Unified diff