Commit 0b4fc4ba authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '3c18a7b1'

* commit '3c18a7b1':
  avio: Do not consider the end-of-buffer position valid

Conflicts:
	libavformat/aviobuf.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 37984ca1 3c18a7b1
......@@ -228,7 +228,7 @@ int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
offset1 = offset - pos;
if (!s->must_flush && (!s->direct || !s->seek) &&
offset1 >= 0 && offset1 <= buffer_size) {
offset1 >= 0 && offset1 < buffer_size) {
/* can do the seek inside the buffer */
s->buf_ptr = s->buffer + offset1;
} else if ((!s->seekable ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment