Commit 1cc94682 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'ab76d9f6'

* commit 'ab76d9f6':
  http: Always allow no-op seek

Conflicts:
	libavformat/http.c

See: 857841c1Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 76a939d0 ab76d9f6
......@@ -1048,7 +1048,8 @@ static int64_t http_seek(URLContext *h, int64_t off, int whence)
if (whence == AVSEEK_SIZE)
return s->filesize;
else if ((whence == SEEK_CUR && off == 0) || (whence == SEEK_SET && off == s->off))
else if ((whence == SEEK_CUR && off == 0) ||
(whence == SEEK_SET && off == s->off))
return s->off;
else if ((s->filesize == -1 && whence == SEEK_END) || h->is_streamed)
return AVERROR(ENOSYS);
......
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