You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +02:00
http: Always allow no-op seek
This also allows checking stream position as per ffurl_seek() doxy. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
committed by
Luca Barbato
parent
2ec33d2712
commit
ab76d9f628
@ -901,6 +901,9 @@ static int64_t http_seek(URLContext *h, int64_t off, int whence)
|
|||||||
|
|
||||||
if (whence == AVSEEK_SIZE)
|
if (whence == AVSEEK_SIZE)
|
||||||
return s->filesize;
|
return s->filesize;
|
||||||
|
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)
|
else if ((s->filesize == -1 && whence == SEEK_END) || h->is_streamed)
|
||||||
return AVERROR(ENOSYS);
|
return AVERROR(ENOSYS);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user