Revision b3eab9fb libavformat/aviobuf.c

View differences:

libavformat/aviobuf.c
148 148
    }
149 149
    offset1 = offset - pos;
150 150
    if (!s->must_flush &&
151
        offset1 >= 0 && offset1 < (s->buf_end - s->buffer)) {
151
        offset1 >= 0 && offset1 <= (s->buf_end - s->buffer)) {
152 152
        /* can do the seek inside the buffer */
153 153
        s->buf_ptr = s->buffer + offset1;
154 154
    } else if(s->is_streamed && !s->write_flag &&

Also available in: Unified diff