This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 7cb93fb200f7b7f4493ec65fe7a2fc7716bb3690 Author: Niklas Haas <[email protected]> AuthorDate: Sun May 31 22:24:16 2026 +0200 Commit: Niklas Haas <[email protected]> CommitDate: Thu Jun 4 17:48:12 2026 +0200 avformat/http: return ENOSYS instead of UINT64_MAX for unknown filesize This matches the behavior of e.g. the pipe: protocol, which returns ENOSYS on account of ffurl_seek() not being implemented. The previous behavior of returning s->filesize directly is almost surely a bug, as s->filesize is UINT64_MAX when never initialized. Sponsored-by: nxtedition AB Signed-off-by: Niklas Haas <[email protected]> --- libavformat/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/http.c b/libavformat/http.c index 32ec5192c4..fca9f55fe6 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -2096,7 +2096,7 @@ static int64_t http_seek_internal(URLContext *h, int64_t off, int whence, int fo uint8_t discard[4096]; if (whence == AVSEEK_SIZE) - return s->filesize; + return s->filesize == UINT64_MAX ? AVERROR(ENOSYS) : s->filesize; else if ((s->filesize == UINT64_MAX && whence == SEEK_END)) return AVERROR(ENOSYS); _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
